MCPcopy Create free account
hub / github.com/ZDoom/Raze / Open

Method Open

source/common/scripting/frontend/ast.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void Open(const char *label)
82 {
83 size_t labellen = label != NULL ? strlen(label) : 0;
84 CheckWrap(labellen + 1 + NeedSpace);
85 if (NeedSpace)
86 {
87 Str << ' ';
88 ConsecOpens = 0;
89 }
90 Str << '(';
91 ConsecOpens++;
92 if (label != NULL)
93 {
94 Str.AppendCStrPart(label, labellen);
95 }
96 Column += labellen + 1 + NeedSpace;
97 NestDepth++;
98 NeedSpace = (label != NULL);
99 }
100 void Close()
101 {
102 assert(NestDepth != 0);

Callers 15

PrintNodesFunction · 0.45
PrintIdentifierFunction · 0.45
PrintClassFunction · 0.45
PrintStructFunction · 0.45
PrintPropertyFunction · 0.45
PrintFlagDefFunction · 0.45
PrintStaticArrayStateFunction · 0.45
PrintEnumFunction · 0.45
PrintEnumTerminatorFunction · 0.45
PrintStatesFunction · 0.45
PrintStatePartFunction · 0.45
PrintStateLabelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected