aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-29 14:35:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-29 14:35:04 -0300
commit8fddca81e7d4137512e92f398ca638d61b935dbd (patch)
treeaa778d040c923285979df29e7fb29763ff5c9e81 /lauxlib.c
parentc33bb08ffe04f24e09571b59eed3c9b59b622d91 (diff)
downloadlua-8fddca81e7d4137512e92f398ca638d61b935dbd.tar.gz
lua-8fddca81e7d4137512e92f398ca638d61b935dbd.tar.bz2
lua-8fddca81e7d4137512e92f398ca638d61b935dbd.zip
'onelua' can use the test library
Just add -DLUA_USER_H='"ltests.h"' when compiling it.
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);