elua lib: docs for elua_io_loadfile
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 20 Apr 2015 15:38:52 +0000 (16:38 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:22 +0000 (15:05 +0100)
src/lib/elua/Elua.h

index 83441ea..0a16567 100644 (file)
@@ -347,6 +347,18 @@ EAPI Eina_Bool elua_state_modules_setup(const Elua_State *es);
  */
 EAPI Eina_Bool elua_state_io_setup(const Elua_State *es);
 
+/**
+ * @brief Loads a file using Elua's own mmap-based IO.
+ *
+ * This function behaves identically to luaL_loadfile when it comes to
+ * semantics. The loaded file remains on the Lua stack.
+ *
+ * @param[in] es The Elua state.
+ * @param[in] fname The file name.
+ * @return 0 for no errors, a non-zero value for errors (-1 for NULL es).
+ *
+ * @ingroup Elua
+ */
 EAPI int elua_io_loadfile(const Elua_State *es, const char *fname);
 
 EAPI int elua_util_require(Elua_State *es, const char *libname);