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

Function DumpString

third-party/lua-5.1.5/src/ldump.c:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static void DumpString(const TString* s, DumpState* D)
62{
63 if (s==NULL || getstr(s)==NULL)
64 {
65 size_t size=0;
66 DumpVar(size,D);
67 }
68 else
69 {
70 size_t size=s->tsv.len+1; /* include trailing '\0' */
71 DumpVar(size,D);
72 DumpBlock(getstr(s),size,D);
73 }
74}
75
76#define DumpCode(f,D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D)
77

Callers 3

DumpConstantsFunction · 0.70
DumpDebugFunction · 0.70
DumpFunctionFunction · 0.70

Calls 1

DumpBlockFunction · 0.70

Tested by

no test coverage detected