elua lib: add state_free doc

This commit is contained in:
Daniel Kolesa 2015-04-20 14:49:10 +01:00
parent 8f7c9a3b26
commit 002dc5a6b9
1 changed files with 10 additions and 0 deletions

View File

@ -166,6 +166,16 @@ EAPI Elua_State *elua_state_new(const char *progname);
*/
EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L);
/**
* @brief Destroy an Elua state.
*
* Given an Elua state, this destroys its internal Lua state as well as all
* other data its holding and then frees the Elua state itself.
*
* @param[in] es The Elua state.
*
* @ingroup Elua
*/
EAPI void elua_state_free(Elua_State *es);
EAPI void elua_state_dirs_set(Elua_State *es, const char *core,