summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-20 16:38:52 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:22 +0100
commit2a8eb85dff62684b80fdea6dc5d609b9723b8e49 (patch)
tree1db2bffd1d99176ca90ce8c1127995a8e5da8de2 /src/lib/elua
parent098b135799ce3516258024f62e6f5b3bd2ff7d18 (diff)
elua lib: docs for elua_io_loadfile
Diffstat (limited to 'src/lib/elua')
-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);