MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / doonnewstack

Function doonnewstack

Dependencies/lua/src/ltests.c:1120–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118
1119
1120static int doonnewstack (lua_State *L) {
1121 lua_State *L1 = lua_newthread(L);
1122 size_t l;
1123 const char *s = luaL_checklstring(L, 1, &l);
1124 int status = luaL_loadbuffer(L1, s, l, s);
1125 if (status == LUA_OK)
1126 status = lua_pcall(L1, 0, 0, 0);
1127 lua_pushinteger(L, status);
1128 return 1;
1129}
1130
1131
1132static int s2d (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_newthreadFunction · 0.85
luaL_checklstringFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected