MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaL_pushresult

Function luaL_pushresult

extlibs/lua/src/lauxlib.c:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581
582LUALIB_API void luaL_pushresult (luaL_Buffer *B) {
583 lua_State *L = B->L;
584 lua_pushlstring(L, B->b, B->n);
585 if (buffonstack(B)) {
586 lua_copy(L, -1, -3); /* move string to reserved slot */
587 lua_pop(L, 2); /* pop string and box (closing the box) */
588 }
589}
590
591
592LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) {

Callers 15

str_dumpFunction · 0.70
str_gsubFunction · 0.70
str_formatFunction · 0.70
str_packFunction · 0.70
luaL_tracebackFunction · 0.70
luaL_pushresultsizeFunction · 0.70
luaL_gsubFunction · 0.70
utfcharFunction · 0.70
tconcatFunction · 0.70
setpathFunction · 0.70
pusherrornotfoundFunction · 0.70
searchpathFunction · 0.70

Calls 2

lua_pushlstringFunction · 0.85
lua_copyFunction · 0.70

Tested by

no test coverage detected