aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.h
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2018-07-27 07:35:24 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2018-07-27 07:35:24 +0200
commitc325be435c64be57cf2210fa6936af0d425d0ce0 (patch)
tree0a6398c67346ff8df989994e7e29d4110c515889 /c-api/compat-5.3.h
parent3c76f8f5edf602b023672f8d8f317b0eea2f1195 (diff)
downloadlua-compat-5.3-c325be435c64be57cf2210fa6936af0d425d0ce0.tar.gz
lua-compat-5.3-c325be435c64be57cf2210fa6936af0d425d0ce0.tar.bz2
lua-compat-5.3-c325be435c64be57cf2210fa6936af0d425d0ce0.zip
Add an implementation of `lua_getextraspace()`.
Diffstat (limited to 'c-api/compat-5.3.h')
-rw-r--r--c-api/compat-5.3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h
index 8e10893..082a6a0 100644
--- a/c-api/compat-5.3.h
+++ b/c-api/compat-5.3.h
@@ -293,6 +293,9 @@ typedef int (*lua_KFunction)(lua_State *L, int status, lua_KContext ctx);
293#define lua_geti COMPAT53_CONCAT(COMPAT53_PREFIX, _geti) 293#define lua_geti COMPAT53_CONCAT(COMPAT53_PREFIX, _geti)
294COMPAT53_API int lua_geti (lua_State *L, int index, lua_Integer i); 294COMPAT53_API int lua_geti (lua_State *L, int index, lua_Integer i);
295 295
296#define lua_getextraspace COMPAT53_CONCAT(COMPAT53_PREFIX, _getextraspace)
297COMPAT53_API void *lua_getextraspace (lua_State *L);
298
296#define lua_isinteger COMPAT53_CONCAT(COMPAT53_PREFIX, _isinteger) 299#define lua_isinteger COMPAT53_CONCAT(COMPAT53_PREFIX, _isinteger)
297COMPAT53_API int lua_isinteger (lua_State *L, int index); 300COMPAT53_API int lua_isinteger (lua_State *L, int index);
298 301
@@ -339,7 +342,6 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname,
339 342
340/* XXX not implemented: 343/* XXX not implemented:
341 * lua_isyieldable 344 * lua_isyieldable
342 * lua_getextraspace
343 * lua_arith (new operators) 345 * lua_arith (new operators)
344 * lua_pushfstring (new formats) 346 * lua_pushfstring (new formats)
345 */ 347 */