Mercurial > hg > qcc
changeset 252:289e55bcf312
[project @ 2003-04-26 20:51:42 by bellard]
added tcc_set_warning() - c++ include support
author | bellard |
---|---|
date | Sat, 26 Apr 2003 20:51:42 +0000 |
parents | ca3ee452e0cb |
children | f9674d902bbf |
files | libtcc.h |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libtcc.h Sat Apr 26 20:49:46 2003 +0000 +++ b/libtcc.h Sat Apr 26 20:51:42 2003 +0000 @@ -1,6 +1,10 @@ #ifndef LIBTCC_H #define LIBTCC_H +#ifdef __cplusplus +extern "C" { +#endif + struct TCCState; typedef struct TCCState TCCState; @@ -18,6 +22,9 @@ void tcc_set_error_func(TCCState *s, void *error_opaque, void (*error_func)(void *opaque, const char *msg)); +/* set/reset a warning */ +int tcc_set_warning(TCCState *s, const char *warning_name, int value); + /*****************************/ /* preprocessor */ @@ -79,4 +86,8 @@ /* return symbol value or error */ void *tcc_get_symbol(TCCState *s, const char *name); +#ifdef __cplusplus +} #endif + +#endif