diff options
Diffstat (limited to 'src/lib/elua')
-rw-r--r-- | src/lib/elua/Elua.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h index c88d20997a..e764750c1c 100644 --- a/src/lib/elua/Elua.h +++ b/src/lib/elua/Elua.h | |||
@@ -150,6 +150,20 @@ EAPI int elua_shutdown(void); | |||
150 | * @ingroup Elua | 150 | * @ingroup Elua |
151 | */ | 151 | */ |
152 | EAPI Elua_State *elua_state_new(const char *progname); | 152 | EAPI Elua_State *elua_state_new(const char *progname); |
153 | |||
154 | /** | ||
155 | * @brief Retrieve an Elua state from a Lua state. | ||
156 | * | ||
157 | * This doesn't create a new Elua state. Instead it just retrieves an existing | ||
158 | * Elua state given a Lua state. If no Elua state could be found (for example | ||
159 | * when the Lua state was created independently of Elua), this function returns | ||
160 | * NULL. | ||
161 | * | ||
162 | * @param[in] L The Lua state. | ||
163 | * @return An Elua state or NULL. | ||
164 | * | ||
165 | * @ingroup Elua | ||
166 | */ | ||
153 | EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L); | 167 | EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L); |
154 | 168 | ||
155 | EAPI void elua_state_free(Elua_State *es); | 169 | EAPI void elua_state_free(Elua_State *es); |