diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-29 14:35:04 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-29 14:35:04 -0300 |
| commit | 8fddca81e7d4137512e92f398ca638d61b935dbd (patch) | |
| tree | aa778d040c923285979df29e7fb29763ff5c9e81 /lauxlib.c | |
| parent | c33bb08ffe04f24e09571b59eed3c9b59b622d91 (diff) | |
| download | lua-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 '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); |
