elua lib: add state_new doc
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 20 Apr 2015 13:45:08 +0000 (14:45 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:21 +0000 (15:05 +0100)
src/lib/elua/Elua.h

index 4588bcb..c88d209 100644 (file)
@@ -135,6 +135,20 @@ EAPI int elua_init(void);
  */
 EAPI int elua_shutdown(void);
 
+/**
+ * @brief Create a new Elua state.
+ *
+ * This creates a new Elua state. An Elua state is externally opaque, but
+ * it contains a LuaJIT state as well as some additional information that
+ * is mostly initialized by other APIs.
+ *
+ * @param[in] progname The program name that holds the Elua state. This will
+ * be used for stuff like error reporting. Typically the same as the binary
+ * name of the application (argv[0]).
+ * @return A new Elua state or NULL.
+ *
+ * @ingroup Elua
+ */
 EAPI Elua_State *elua_state_new(const char *progname);
 EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L);