Showing the changes to tccpp.c (1 of 4 files). Show all
Unified · Split
| @@ -107,6 +107,11 @@ ST_FUNC void expect(const char *msg) · 106 unmodified lines | ||
| 107 | 107 | tcc_error("%s expected", msg); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | +ST_FUNC void expect_arg(const char *msg, size_t arg) | |
| 111 | +{ | |
| 112 | + tcc_error("%s expected as arg #%zu", msg, arg); | |
| 113 | +} | |
| 114 | + | |
| 110 | 115 | /* ------------------------------------------------------------------------- */ |
| 111 | 116 | /* Custom allocator for tiny objects */ |
| 112 | 117 | |