aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libtcc.h b/libtcc.h
index 799ffd8..97b8587 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -48,7 +48,11 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s, const char *sym);
/* compiling */
/* add a file (C file, dll, object, library, ld script). Return -1 if error. */
-LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename);
+LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename, int filetype);
+#define TCC_FILETYPE_BINARY 1
+#define TCC_FILETYPE_C 2
+#define TCC_FILETYPE_ASM 3
+#define TCC_FILETYPE_ASM_PP 4
/* compile a string containing a C source. Return -1 if error. */
LIBTCCAPI int tcc_compile_string(TCCState *s, const char *buf);