Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- //
- #define TCC_ADD_API( X, Y ) \
- { \
- tcc_add_symbol( libtcc_getContext(), X, (void*) Y ); \
- }
- //
- #define TCC_OUTPUT_MEMORY 0 /* output will be run in memory (default) */
- #define TCC_OUTPUT_EXE 1 /* executable file */
- #define TCC_OUTPUT_DLL 2 /* dynamic library */
- #define TCC_OUTPUT_OBJ 3 /* object file */
- #define TCC_OUTPUT_PREPROCESS 4 /* only preprocess (used internally) */
- //
- #define TCC_RELOCATE_AUTO ((void*)1)
- //
- extern bool libtcc_start ( void );
- extern void libtcc_stop ( void );
- extern void *libtcc_getContext( void );
- // tcc api
- extern void *(*tcc_new )( void );
- extern void (*tcc_delete )( void *s );
- extern void (*tcc_set_error_func )( void *s, void *error_opaque, void (*error_func)(void *opaque, const char *msg) );
- extern int (*tcc_add_symbol )( void *s, const char *name, const void *val );
- extern int (*tcc_add_file )( void *s, const char *filename );
- extern int (*tcc_compile_string )( void *s, const char *buf );
- extern int (*tcc_relocate )( void *s, void *ptr );
- extern void *(*tcc_get_symbol )( void *s, const char *name );
- extern void (*tcc_set_lib_path )( void *s, const char *path );
- extern void (*tcc_set_output_type )( void *s, int output_type );
- extern int (*tcc_set_options )( void *s, const char *str );
- extern int (*tcc_add_include_path )( void *s, const char *pathname );
- extern int (*tcc_add_sysinclude_path )( void *s, const char *pathname );
- extern void (*tcc_define_symbol )( void *s, const char *sym, const char *value );
- extern void (*tcc_undefine_symbol )( void *s, const char *sym );
- extern int (*tcc_add_library_path )( void *s, const char *pathname );
- extern int (*tcc_add_library )( void *s, const char *libraryname );
- extern int (*tcc_output_file )( void *s, const char *filename );
- extern int (*tcc_run )( void *s, int argc, char **argv );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement