MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaL_pushresult

Function luaL_pushresult

3rd/lua-5.4.3/src/lauxlib.c:593–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591
592
593LUALIB_API void luaL_pushresult (luaL_Buffer *B) {
594 lua_State *L = B->L;
595 checkbufferlevel(B, -1);
596 lua_pushlstring(L, B->b, B->n);
597 if (buffonstack(B))
598 lua_closeslot(L, -2); /* close the box */
599 lua_remove(L, -2); /* remove box or placeholder from the stack */
600}
601
602
603LUALIB_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