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

Function luaL_addlstring

third-party/lua-5.5.0/src/lauxlib.c:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595
596
597LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) {
598 if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */
599 char *b = prepbuffsize(B, l, -1);
600 memcpy(b, s, l * sizeof(char));
601 luaL_addsize(B, l);
602 }
603}
604
605
606LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) {

Callers 9

writerFunction · 0.70
add_sFunction · 0.70
add_valueFunction · 0.70
str_gsubFunction · 0.70
str_packFunction · 0.70
luaL_addstringFunction · 0.70
luaL_addgsubFunction · 0.70
tconcatFunction · 0.70
setpathFunction · 0.70

Calls 1

prepbuffsizeFunction · 0.70

Tested by

no test coverage detected