MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_addvalue

Function luaL_addvalue

third-party/lua-5.2.4/src/lauxlib.c:485–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483
484
485LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
486 lua_State *L = B->L;
487 size_t l;
488 const char *s = lua_tolstring(L, -1, &l);
489 if (buffonstack(B))
490 lua_insert(L, -2); /* put value below buffer */
491 luaL_addlstring(B, s, l);
492 lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */
493}
494
495
496LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {

Callers 6

add_sFunction · 0.70
add_valueFunction · 0.70
str_formatFunction · 0.70
addfieldFunction · 0.70
searchpathFunction · 0.70
findloaderFunction · 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