MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / emptybuffer

Function emptybuffer

lua/lauxlib.c:446–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444
445
446static int emptybuffer (luaL_Buffer *B) {
447 size_t l = bufflen(B);
448 if (l == 0) return 0; /* put nothing on stack */
449 else {
450 lua_pushlstring(B->L, B->buffer, l);
451 B->p = B->buffer;
452 B->lvl++;
453 return 1;
454 }
455}
456
457
458static 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