MCPcopy Create free account
hub / github.com/AshenvaleZX/ZXEngine / luaX_newstring

Function luaX_newstring

CPPScripts/External/Lua/llex.c:134–149  ·  view source on GitHub ↗

** Creates a new string and anchors it in scanner's table so that it ** will not be collected until the end of the compilation; by that time ** it should be anchored somewhere. It also internalizes long strings, ** ensuring there is only one copy of each unique string. The table ** here is used as a set: the string enters as the key, while its value ** is irrelevant. We use the string itself as t

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

read_long_stringFunction · 0.85
read_stringFunction · 0.85
llexFunction · 0.85

Calls 3

luaS_newlstrFunction · 0.85
luaH_getstrFunction · 0.85
luaH_finishsetFunction · 0.85

Tested by

no test coverage detected