]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
vcompile_error, vcompile_warning; fixed: removed opts_ globals from con.c; made the...
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 86d0584a4321b027cd8136f3774d2e32e5bc4ea1..02a8c891f57d5ee4638b66cbdfd8fd1ed7631cb4 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
 #      pragma warning(disable : 4700 ) /* uninitialized local variable used                       */
 #endif
 
-#if !defined(GMQCC_VERSION_MAJOR) \
- || !defined(GMQCC_VERSION_MINOR) \
- || !defined(GMQCC_VERSION_PATCH)
-#   error GMQCC_VERSION_ macros missing
-#endif
-
+#define GMQCC_VERSION_MAJOR 0
+#define GMQCC_VERSION_MINOR 2
+#define GMQCC_VERSION_PATCH 0
 #define GMQCC_VERSION_BUILD(J,N,P) (((J)<<16)|((N)<<8)|(P))
 #define GMQCC_VERSION \
     GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
@@ -626,8 +623,10 @@ int  con_out   (const char *, ...);
 extern size_t compile_errors;
 extern size_t compile_warnings;
 
-void /********/ compile_error  (lex_ctx ctx, /*LVL_ERROR*/ const char *msg, ...);
-bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...);
+void /********/  compile_error  (lex_ctx ctx, /*LVL_ERROR*/ const char *msg, ...);
+bool GMQCC_WARN  compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...);
+void /********/ vcompile_error  (lex_ctx ctx, /*LVL_ERROR*/ const char *msg, va_list);
+bool GMQCC_WARN vcompile_warning(lex_ctx ctx, int warntype, const char *fmt, va_list);
 
 /*===================================================================*/
 /*========================= assembler.c =============================*/