summaryrefslogtreecommitdiff
path: root/src/lib/elua/Elua.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elua/Elua.h')
-rw-r--r--src/lib/elua/Elua.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 08bfc0c3aa..3a172515c5 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -449,8 +449,21 @@ EAPI Eina_Bool elua_util_app_load(Elua_State *es, const char *appname);
449EAPI int elua_util_script_run(Elua_State *es, int argc, char **argv, int n, 449EAPI int elua_util_script_run(Elua_State *es, int argc, char **argv, int n,
450 int *quit); 450 int *quit);
451 451
452EAPI int elua_util_error_report(const Elua_State *es, const char *pname, 452/**
453 int status); 453 * @brief Reports an error using Eina logging.
454 *
455 * If the given status is 0, this function just returns it. Otherwise, it takes
456 * the topmost item on the Lua stack, converts it to string (if it cannot be
457 * converted, a "(non-string error)" placeholder is used) and logs it out
458 * as an error, together with the program name set on Elua state init.
459 *
460 * @param[in] es The Elua state.
461 * @param[in] status The status code.
462 * @return The status code.
463 *
464 * @ingroup Elua
465 */
466EAPI int elua_util_error_report(const Elua_State *es, int status);
454 467
455#endif 468#endif
456 469