MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaL_addvalue

Function luaL_addvalue

ThirdParty/lua/lua/lauxlib.c:496–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495
496LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
497 lua_State *L = B->L;
498 size_t l;
499 const char *s = lua_tolstring(L, -1, &l);
500 if (buffonstack(B))
501 lua_insert(L, -2); /* put value below buffer */
502 luaL_addlstring(B, s, l);
503 lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */
504}
505
506
507LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {

Callers 7

add_sFunction · 0.85
add_valueFunction · 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