| 255 | } |
| 256 | |
| 257 | static 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 | |
| 272 | static void PrintIdentifier(FLispString &out, const ZCC_TreeNode *node) |
| 273 | { |
no test coverage detected