MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / emptybuffer

Function emptybuffer

Source/Misc/lua/src/lua.c:10610–10619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10608
10609
10610static int emptybuffer (luaL_Buffer *B) {
10611size_t l = bufflen(B);
10612if (l == 0) return 0; /* put nothing on stack */
10613else {
10614lua_pushlstring(B->L, B->buffer, l);
10615B->p = B->buffer;
10616B->lvl++;
10617return 1;
10618}
10619}
10620
10621
10622static void adjuststack (luaL_Buffer *B) {

Callers 3

luaL_prepbufferFunction · 0.85
luaL_pushresultFunction · 0.85
luaL_addvalueFunction · 0.85

Calls 1

lua_pushlstringFunction · 0.85

Tested by

no test coverage detected