MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / emptybuffer

Function emptybuffer

other_src/lua/src/lauxlib.cpp:423–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423static int emptybuffer (luaL_Buffer *B) {
424 size_t l = bufflen(B);
425 if (l == 0) return 0; /* put nothing on stack */
426 else {
427 lua_pushlstring(B->L, B->buffer, l);
428 B->p = B->buffer;
429 B->lvl++;
430 return 1;
431 }
432}
433
434
435static void adjuststack (luaL_Buffer *B) {

Callers 3

luaL_prepbufferFunction · 0.70
luaL_pushresultFunction · 0.70
luaL_addvalueFunction · 0.70

Calls 1

lua_pushlstringFunction · 0.70

Tested by

no test coverage detected