diff options
Diffstat (limited to 'c-api')
-rw-r--r-- | c-api/compat-5.3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index cd6764c..e3bbb11 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h | |||
@@ -259,6 +259,9 @@ COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s); | |||
259 | #define luaL_getmetafield(L, o, e) \ | 259 | #define luaL_getmetafield(L, o, e) \ |
260 | (luaL_getmetafield(L, o, e) ? lua_type(L, -1) : LUA_TNIL) | 260 | (luaL_getmetafield(L, o, e) ? lua_type(L, -1) : LUA_TNIL) |
261 | 261 | ||
262 | #define luaL_newmetatable(L, tn) \ | ||
263 | (luaL_newmetatable(L, tn) ? (lua_pushstring(L, tn), lua_setfield(L, -2, "__name"), 1) : 0) | ||
264 | |||
262 | #define luaL_requiref COMPAT53_CONCAT(COMPAT53_PREFIX, L_requiref_53) | 265 | #define luaL_requiref COMPAT53_CONCAT(COMPAT53_PREFIX, L_requiref_53) |
263 | COMPAT53_API void luaL_requiref (lua_State *L, const char *modname, | 266 | COMPAT53_API void luaL_requiref (lua_State *L, const char *modname, |
264 | lua_CFunction openf, int glb ); | 267 | lua_CFunction openf, int glb ); |