MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaL_newstate

Function luaL_newstate

3rd/lua-5.4.3/src/lauxlib.c:1087–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1085
1086
1087LUALIB_API lua_State *luaL_newstate (void) {
1088 lua_State *L = lua_newstate(l_alloc, NULL);
1089 if (l_likely(L)) {
1090 lua_atpanic(L, &panic);
1091 lua_setwarnf(L, warnfoff, L); /* default is warnings off */
1092 }
1093 return L;
1094}
1095
1096
1097LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) {

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

lua_newstateFunction · 0.85
lua_setwarnfFunction · 0.85

Tested by

no test coverage detected