aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lauxlib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 7f33f0ad..adb3851e 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1177,7 +1177,11 @@ LUALIB_API unsigned int luaL_makeseed (lua_State *L) {
1177} 1177}
1178 1178
1179 1179
1180LUALIB_API lua_State *luaL_newstate (void) { 1180/*
1181** Use the name with parentheses so that headers can redefine it
1182** as a macro.
1183*/
1184LUALIB_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);