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

Method AddInt

source/common/scripting/frontend/ast.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 Add(&c, 1);
183 }
184 void AddInt(int i, bool un=false)
185 {
186 char buf[16];
187 size_t len;
188 if (!un)
189 {
190 len = mysnprintf(buf, countof(buf), "%d", i);
191 }
192 else
193 {
194 len = mysnprintf(buf, countof(buf), "%uu", i);
195 }
196 Add(buf, len);
197 }
198 void AddHex(unsigned x)
199 {
200 char buf[10];

Callers 4

PrintFlagDefFunction · 0.80
PrintExprConstantFunction · 0.80
PrintFlagStmtFunction · 0.80
PrintNodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected