Unified · Split
| @@ -1379,6 +1379,12 @@ ST_FUNC int set_flag(TCCState *s, const FlagDef *flags, int nb_flags, · 1378 unmodified lines | ||
| 1379 | 1379 | return 0; |
| 1380 | 1380 | } |
| 1381 | 1381 | |
| 1382 | +/* enable debug */ | |
| 1383 | +LIBTCCAPI void tcc_enable_debug(TCCState *s) | |
| 1384 | +{ | |
| 1385 | + s->do_debug = 1; | |
| 1386 | +} | |
| 1387 | + | |
| 1382 | 1388 | /* set/reset a warning */ |
| 1383 | 1389 | LIBTCCAPI int tcc_set_warning(TCCState *s, const char *warning_name, int value) |
| 1384 | 1390 | { |