diff options
| author | Nicolas Limare <nicolas.limare@cmla.ens-cachan.fr> | 2011-10-03 22:36:16 +0200 |
|---|---|---|
| committer | Nicolas Limare <nicolas.limare@cmla.ens-cachan.fr> | 2011-10-03 22:36:16 +0200 |
| commit | 5f99fe2ff11d47e7833107873577b40c3d664772 (patch) | |
| tree | b46a8f715dbc8d40732a656d1b70e5c1ce82aa79 /libtcc.c | |
| parent | 2dd3fb103e9fc9aa71e08b95fe1656ba0148307d (diff) | |
| download | tinycc-5f99fe2ff11d47e7833107873577b40c3d664772.tar.gz tinycc-5f99fe2ff11d47e7833107873577b40c3d664772.tar.bz2 | |
libtcc: add missing tcc_enable_debug()
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1379,6 +1379,12 @@ ST_FUNC int set_flag(TCCState *s, const FlagDef *flags, int nb_flags, return 0; } +/* enable debug */ +LIBTCCAPI void tcc_enable_debug(TCCState *s) +{ + s->do_debug = 1; +} + /* set/reset a warning */ LIBTCCAPI int tcc_set_warning(TCCState *s, const char *warning_name, int value) { |
