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

Function PrintBuiltInType

source/common/scripting/frontend/ast.cpp:257–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static void PrintBuiltInType(FLispString &out, EZCCBuiltinType type)
258{
259 static_assert(ZCC_NUM_BUILT_IN_TYPES == countof(BuiltInTypeNames));
260 if (unsigned(type) >= unsigned(ZCC_NUM_BUILT_IN_TYPES))
261 {
262 char buf[30];
263 size_t len = mysnprintf(buf, countof(buf), "bad-type-%u", type);
264 out.Add(buf, len);
265 }
266 else
267 {
268 out.Add(BuiltInTypeNames[type]);
269 }
270}
271
272static void PrintIdentifier(FLispString &out, const ZCC_TreeNode *node)
273{

Callers 2

PrintEnumFunction · 0.85
PrintBasicTypeFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected