MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaL_pushresult

Function luaL_pushresult

lib/lua/src/lauxlib.c:597–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595
596
597LUALIB_API void luaL_pushresult (luaL_Buffer *B) {
598 lua_State *L = B->L;
599 checkbufferlevel(B, -1);
600 lua_pushlstring(L, B->b, B->n);
601 if (buffonstack(B))
602 lua_closeslot(L, -2); /* close the box */
603 lua_remove(L, -2); /* remove box or placeholder from the stack */
604}
605
606
607LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) {

Callers 15

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

Calls 2

lua_pushlstringFunction · 0.85
lua_closeslotFunction · 0.85

Tested by

no test coverage detected