aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
authorbellard <bellard>2003-04-26 20:51:42 +0000
committerbellard <bellard>2003-04-26 20:51:42 +0000
commit356fa0c3bbc1f374a4afc86a83f900da4892cee9 (patch)
tree3aea5ed5fe6593460cc3761b1e1e48133bfc0fec /libtcc.h
parent9791bfaf485ce7c60e0c957b85be23631aad064c (diff)
downloadtinycc-356fa0c3bbc1f374a4afc86a83f900da4892cee9.tar.gz
tinycc-356fa0c3bbc1f374a4afc86a83f900da4892cee9.tar.bz2
added tcc_set_warning() - c++ include support
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libtcc.h b/libtcc.h
index 0fe2c0f..98fcadc 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -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