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.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 623179fecb..3b087790b8 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -335,7 +335,10 @@ EAPI Eina_Bool elua_state_setup(Elua_State *es);
335 * @brief Loads a file using Elua's own mmap-based IO. 335 * @brief Loads a file using Elua's own mmap-based IO.
336 * 336 *
337 * This function behaves identically to luaL_loadfile when it comes to 337 * This function behaves identically to luaL_loadfile when it comes to
338 * semantics. The loaded file remains on the Lua stack. 338 * semantics. The loaded file remains on the Lua stack. If the input
339 * state is NULL, the return value is -1 and nothing is left on the stack.
340 * On any different error, the error object is left on the stack and this
341 * returns a value larger than zero (LUA_ERR*). On success, zero is returned.
339 * 342 *
340 * @param[in] es The Elua state. 343 * @param[in] es The Elua state.
341 * @param[in] fname The file name. 344 * @param[in] fname The file name.
@@ -390,15 +393,18 @@ EAPI Eina_Bool elua_util_string_run(Elua_State *es, const char *chunk,
390 * @brief Loads an application. 393 * @brief Loads an application.
391 * 394 *
392 * This loads an app, respecting the app path set on state initialization. 395 * This loads an app, respecting the app path set on state initialization.
393 * Leaves the Lua stack clean. Actually runs the app. 396 * Actually runs the app. If the input state is NULL, the return value is -1
397 * nd nothing is left on the stack. On any different error, the error object
398 * is left on the stack and this returns 1. On success, zero is returned
399 * (and the return value from the app is left on the stack).
394 * 400 *
395 * @param[in] es The Elua state. 401 * @param[in] es The Elua state.
396 * @param[in] appname The application name. 402 * @param[in] appname The application name.
397 * @return EINA_TRUE on success, EINA_FALSE on failure. 403 * @return 0 for no errors, 1 on errors, -1 on null input.
398 * 404 *
399 * @ingroup Elua 405 * @ingroup Elua
400 */ 406 */
401EAPI Eina_Bool elua_util_app_load(Elua_State *es, const char *appname); 407EAPI int elua_util_app_load(Elua_State *es, const char *appname);
402 408
403/** 409/**
404 * @brief Runs a script. 410 * @brief Runs a script.