MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaL_addvalue

Function luaL_addvalue

depends/lua/src/lauxlib.c:558–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556
557
558LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
559 lua_State *L = B->L;
560 size_t l;
561 const char *s = lua_tolstring(L, -1, &l);
562 if (buffonstack(B))
563 lua_insert(L, -2); /* put value below buffer */
564 luaL_addlstring(B, s, l);
565 lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */
566}
567
568
569LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {

Callers 8

add_sFunction · 0.85
add_valueFunction · 0.85
addliteralFunction · 0.85
str_formatFunction · 0.85
utfcharFunction · 0.85
addfieldFunction · 0.85
searchpathFunction · 0.85
findloaderFunction · 0.85

Calls 2

lua_tolstringFunction · 0.85
luaL_addlstringFunction · 0.85

Tested by

no test coverage detected