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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 83441ea7bd..0a165678df 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -347,6 +347,18 @@ EAPI Eina_Bool elua_state_modules_setup(const Elua_State *es);
347 */ 347 */
348EAPI Eina_Bool elua_state_io_setup(const Elua_State *es); 348EAPI Eina_Bool elua_state_io_setup(const Elua_State *es);
349 349
350/**
351 * @brief Loads a file using Elua's own mmap-based IO.
352 *
353 * This function behaves identically to luaL_loadfile when it comes to
354 * semantics. The loaded file remains on the Lua stack.
355 *
356 * @param[in] es The Elua state.
357 * @param[in] fname The file name.
358 * @return 0 for no errors, a non-zero value for errors (-1 for NULL es).
359 *
360 * @ingroup Elua
361 */
350EAPI int elua_io_loadfile(const Elua_State *es, const char *fname); 362EAPI int elua_io_loadfile(const Elua_State *es, const char *fname);
351 363
352EAPI int elua_util_require(Elua_State *es, const char *libname); 364EAPI int elua_util_require(Elua_State *es, const char *libname);