added tcc_set_warning() - c++ include support

tcc-xref
bellard 2003-04-26 20:51:42 +00:00
parent 9791bfaf48
commit 356fa0c3bb
1 changed files with 11 additions and 0 deletions

View File

@ -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_enable_debug(TCCState *s);
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 @@ int tcc_relocate(TCCState *s);
/* return symbol value or error */
void *tcc_get_symbol(TCCState *s, const char *name);
#ifdef __cplusplus
}
#endif
#endif