History

added tcc_set_warning() - c++ include support

bellard committed 23 years ago

Commit 356fa0c1 parent 9791bfa1 file · +11 −0Browse files

Unified · Split

libtcc.h+11−0
@@ -1,6 +1,10 @@
11 #ifndef LIBTCC_H
22 #define LIBTCC_H
33
4+#ifdef __cplusplus
5+extern "C" {
6+#endif
7+
48 struct TCCState;
59
610 typedef struct TCCState TCCState;
@@ -18,6 +22,9 @@ void tcc_enable_debug(TCCState *s); · 11 unmodified lines
1822 void tcc_set_error_func(TCCState *s, void *error_opaque,
1923 void (*error_func)(void *opaque, const char *msg));
2024
25+/* set/reset a warning */
26+int tcc_set_warning(TCCState *s, const char *warning_name, int value);
27+
2128 /*****************************/
2229 /* preprocessor */
2330
@@ -79,4 +86,8 @@ int tcc_relocate(TCCState *s); · 55 unmodified lines
7986 /* return symbol value or error */
8087 void *tcc_get_symbol(TCCState *s, const char *name);
8188
89+#ifdef __cplusplus
90+}
91+#endif
92+
8293 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t