MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_pushresult

Function luaL_pushresult

src/Chain/libraries/glua/lauxlib.cpp:545–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543
544
545LUALIB_API void luaL_pushresult(luaL_Buffer *B) {
546 lua_State *L = B->L;
547 lua_pushlstring(L, B->b, B->n);
548 if (buffonstack(B)) {
549 resizebox(L, -2, 0); /* delete old buffer */
550 lua_remove(L, -2); /* remove its header from the stack */
551 }
552}
553
554
555LUALIB_API void luaL_pushresultsize(luaL_Buffer *B, size_t sz) {

Callers 15

utfcharFunction · 0.85
os_dateFunction · 0.85
tconcatFunction · 0.85
searchpathFunction · 0.85
findloaderFunction · 0.85
str_dumpFunction · 0.85
str_gsubFunction · 0.85
str_formatFunction · 0.85
str_packFunction · 0.85
read_lineFunction · 0.85
read_allFunction · 0.85

Calls 2

lua_pushlstringFunction · 0.85
resizeboxFunction · 0.85

Tested by

no test coverage detected