MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_addvalue

Function luaL_addvalue

freebsd/contrib/openzfs/module/lua/lauxlib.c:445–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444
445LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
446 lua_State *L = B->L;
447 size_t l;
448 const char *s = lua_tolstring(L, -1, &l);
449 if (buffonstack(B))
450 lua_insert(L, -2); /* put value below buffer */
451 luaL_addlstring(B, s, l);
452 lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */
453}
454
455
456LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {

Callers 4

add_sFunction · 0.70
add_valueFunction · 0.70
str_formatFunction · 0.70
addfieldFunction · 0.70

Calls 4

lua_tolstringFunction · 0.70
lua_insertFunction · 0.70
luaL_addlstringFunction · 0.70
lua_removeFunction · 0.70

Tested by

no test coverage detected