MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_addvalue

Function luaL_addvalue

src/Chain/libraries/glua/lauxlib.cpp:561–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

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

Calls 2

lua_tolstringFunction · 0.85
luaL_addlstringFunction · 0.85

Tested by

no test coverage detected