MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaL_pushresult

Function luaL_pushresult

depends/lua/src/lauxlib.c:542–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 14

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

Calls 2

lua_pushlstringFunction · 0.85
resizeboxFunction · 0.85

Tested by

no test coverage detected