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

Function createstrobj

third-party/lua-5.5.0/src/lstring.c:167–176  ·  view source on GitHub ↗

** creates a new string object */

Source from the content-addressed store, hash-verified

165** creates a new string object
166*/
167static TString *createstrobj (lua_State *L, size_t totalsize, lu_byte tag,
168 unsigned h) {
169 TString *ts;
170 GCObject *o;
171 o = luaC_newobj(L, tag, totalsize);
172 ts = gco2ts(o);
173 ts->hash = h;
174 ts->extra = 0;
175 return ts;
176}
177
178
179TString *luaS_createlngstrobj (lua_State *L, size_t l) {

Callers 3

luaS_createlngstrobjFunction · 0.70
internshrstrFunction · 0.70
f_newextFunction · 0.70

Calls 1

luaC_newobjFunction · 0.70

Tested by

no test coverage detected