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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index a1ba8a7dac..5b9981969b 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -389,6 +389,19 @@ EAPI int elua_util_require(Elua_State *es, const char *libname);
389 * @ingroup Elua 389 * @ingroup Elua
390 */ 390 */
391EAPI int elua_util_file_run(Elua_State *es, const char *fname); 391EAPI int elua_util_file_run(Elua_State *es, const char *fname);
392
393/**
394 * @brief Runs a string.
395 *
396 * Runs a string. Returns zero on success or non-zero value on failure.
397 *
398 * @param[in] es The Elua state.
399 * @param[in] chunk The string to run.
400 * @param[in] chname The chunk name to use for traceback/debug.
401 * @return 0 for no errors, a non-zero value for errors (-1 for NULL es).
402 *
403 * @ingroup Elua
404 */
392EAPI int elua_util_string_run(Elua_State *es, const char *chunk, 405EAPI int elua_util_string_run(Elua_State *es, const char *chunk,
393 const char *chname); 406 const char *chname);
394EAPI Eina_Bool elua_util_app_load(Elua_State *es, const char *appname); 407EAPI Eina_Bool elua_util_app_load(Elua_State *es, const char *appname);