diff options
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1177,7 +1177,11 @@ LUALIB_API unsigned int luaL_makeseed (lua_State *L) { | |||
| 1177 | } | 1177 | } |
| 1178 | 1178 | ||
| 1179 | 1179 | ||
| 1180 | LUALIB_API lua_State *luaL_newstate (void) { | 1180 | /* |
| 1181 | ** Use the name with parentheses so that headers can redefine it | ||
| 1182 | ** as a macro. | ||
| 1183 | */ | ||
| 1184 | LUALIB_API lua_State *(luaL_newstate) (void) { | ||
| 1181 | lua_State *L = lua_newstate(l_alloc, NULL, luai_makeseed()); | 1185 | lua_State *L = lua_newstate(l_alloc, NULL, luai_makeseed()); |
| 1182 | if (l_likely(L)) { | 1186 | if (l_likely(L)) { |
| 1183 | lua_atpanic(L, &panic); | 1187 | lua_atpanic(L, &panic); |
