compat_tools.cpp
1 // Compatibility declarations for the tools to avoid linking to the entire engine. 2 3 #include "compat.h" 4 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 // 10 // initprintf() -- prints a string 11 // 12 int initprintf(const char *f, ...) 13 { 14 va_list va; 15 char buf[2048]; 16 17 va_start(va, f); 18 int len = Bvsnprintf(buf, sizeof(buf), f, va); 19 va_end(va); 20 21 return len; 22 } 23 24 void initputs (const char * str) { puts(str); } 25 26 int16_t editstatus = 1; 27 28 #ifdef __cplusplus 29 } 30 #endif