From 5f99fe2ff11d47e7833107873577b40c3d664772 Mon Sep 17 00:00:00 2001 From: Nicolas Limare Date: Mon, 3 Oct 2011 22:36:16 +0200 Subject: [PATCH] libtcc: add missing tcc_enable_debug() --- libtcc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtcc.c b/libtcc.c index 95fa905..8f5cd0e 100644 --- a/libtcc.c +++ b/libtcc.c @@ -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) {