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 @@
1#ifndef LIBTCC_H1#ifndef LIBTCC_H
2#define LIBTCC_H2#define LIBTCC_H
3 3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
4struct TCCState;8struct TCCState;
5 9
6typedef struct TCCState TCCState;10typedef struct TCCState TCCState;
@@ -18,6 +22,9 @@ void tcc_enable_debug(TCCState *s); · 11 unmodified lines
18void tcc_set_error_func(TCCState *s, void *error_opaque,22void tcc_set_error_func(TCCState *s, void *error_opaque,
19 void (*error_func)(void *opaque, const char *msg));23 void (*error_func)(void *opaque, const char *msg));
20 24
25/* set/reset a warning */
26int tcc_set_warning(TCCState *s, const char *warning_name, int value);
27
21/*****************************/28/*****************************/
22/* preprocessor */29/* preprocessor */
23 30
@@ -79,4 +86,8 @@ int tcc_relocate(TCCState *s); · 55 unmodified lines
79/* return symbol value or error */86/* return symbol value or error */
80void *tcc_get_symbol(TCCState *s, const char *name);87void *tcc_get_symbol(TCCState *s, const char *name);
81 88
89#ifdef __cplusplus
90}
91#endif
92
82#endif93#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