11 typedef wchar_t vm_char;
13 #define STRING_LITERAL(string) L##string
15 #define MAX_UNICODE_PATH 32768
16 #define VM_C_API extern "C" __declspec(dllexport)
17 #define SSCANF swscanf
19 #define STRNCMP wcsncmp
20 #define STRDUP _wcsdup
21 #define MIN(a,b) ((a)>(b)?(b):(a))
22 #define FTELL ftello64
23 #define FSEEK fseeko64
26 #define CELL_FORMAT "%Iu"
27 #define CELL_HEX_FORMAT "%Ix"
28 #define CELL_HEX_PAD_FORMAT "%016Ix"
29 #define FIXNUM_FORMAT "%Id"
31 #define CELL_FORMAT "%lu"
32 #define CELL_HEX_FORMAT "%lx"
33 #define CELL_HEX_PAD_FORMAT "%08lx"
34 #define FIXNUM_FORMAT "%ld"
37 #define OPEN_READ(path) _wfopen(path,L"rb")
38 #define OPEN_WRITE(path) _wfopen(path,L"wb")
40 #define print_native_string(string) wprintf(L"%s",string)
42 /* Difference between Jan 1 00:00:00 1601 and Jan 1 00:00:00 1970 */
43 #define EPOCH_OFFSET 0x019db1ded53e8000LL
45 inline static void init_signals() {}
46 inline static void early_init() {}