diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-08 17:22:29 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-08 17:22:29 -0400 |
commit | ee3fff389fbe2e2ba7776e4e24d91d95e01672ba (patch) | |
tree | d095aa9707fa95160f3afe14de2a90db9313e982 /cgen.c | |
parent | a4a3e4a69499bf967d593572f4cddd3956b393c2 (diff) |
debug and release builds; reading files still not fully tested
Diffstat (limited to 'cgen.c')
-rw-r--r-- | cgen.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -121,7 +121,7 @@ static inline void cgen_char(CGenerator *g, char c) { if (isprint(c) && c != '"') cgen_write(g, "%c", c); else - cgen_write(g, "\\x%02x", c); + cgen_write(g, "\\%03o", c); /* can't use hex escape sequences, because they can be more than 2 characters "\xbafoo" is '\xbaf', 'o', 'o' */ } /* should this declaration be a direct function declaration C? (as opposed to using a function pointer or not being a function) */ static bool cgen_fn_is_direct(CGenerator *g, Declaration *d) { @@ -1250,6 +1250,9 @@ static void cgen_expr(CGenerator *g, Expression *e) { case BUILTIN_PLATFORM: cgen_write(g, "platform__"); break; + case BUILTIN_DEBUG: /* substituted for its value */ + assert(0); + break; } break; case EXPR_CAST: { |