diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-29 17:13:27 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-29 17:13:27 -0200 |
commit | 90569630d6755190c5f499c51e1d0e6ef41c6cd8 (patch) | |
tree | 5d28b0c632b6f31c073b74f9a614836bba04e5a0 /lauxlib.c | |
parent | dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3 (diff) | |
download | lua-90569630d6755190c5f499c51e1d0e6ef41c6cd8.tar.gz lua-90569630d6755190c5f499c51e1d0e6ef41c6cd8.tar.bz2 lua-90569630d6755190c5f499c51e1d0e6ef41c6cd8.zip |
detail
(uses a reserved-format name for an internal type in the registry)
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.290 2017/04/24 18:06:12 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.291 2017/06/27 18:32:49 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -483,7 +483,7 @@ static void *newbox (lua_State *L, size_t newsize) { | |||
483 | UBox *box = (UBox *)lua_newuserdata(L, sizeof(UBox)); | 483 | UBox *box = (UBox *)lua_newuserdata(L, sizeof(UBox)); |
484 | box->box = NULL; | 484 | box->box = NULL; |
485 | box->bsize = 0; | 485 | box->bsize = 0; |
486 | if (luaL_newmetatable(L, "LUABOX")) { /* creating metatable? */ | 486 | if (luaL_newmetatable(L, "_UBOX*")) { /* creating metatable? */ |
487 | lua_pushcfunction(L, boxgc); | 487 | lua_pushcfunction(L, boxgc); |
488 | lua_setfield(L, -2, "__gc"); /* metatable.__gc = boxgc */ | 488 | lua_setfield(L, -2, "__gc"); /* metatable.__gc = boxgc */ |
489 | } | 489 | } |