mirror of
https://github.com/frida/tinycc
synced 2025-01-26 05:02:02 +03:00
added tcc_set_warning() - c++ include support
This commit is contained in:
parent
9791bfaf48
commit
356fa0c3bb
11
libtcc.h
11
libtcc.h
@ -1,6 +1,10 @@
|
|||||||
#ifndef LIBTCC_H
|
#ifndef LIBTCC_H
|
||||||
#define LIBTCC_H
|
#define LIBTCC_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct TCCState;
|
struct TCCState;
|
||||||
|
|
||||||
typedef struct TCCState 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 tcc_set_error_func(TCCState *s, void *error_opaque,
|
||||||
void (*error_func)(void *opaque, const char *msg));
|
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 */
|
/* preprocessor */
|
||||||
|
|
||||||
@ -79,4 +86,8 @@ int tcc_relocate(TCCState *s);
|
|||||||
/* return symbol value or error */
|
/* return symbol value or error */
|
||||||
void *tcc_get_symbol(TCCState *s, const char *name);
|
void *tcc_get_symbol(TCCState *s, const char *name);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user