1 /*---------------------------------------------------------------------* 2 3 Project: Dolphin to WIN32 for MCC 4 File: dolphin.types.h 5 6 (C) 2000 Nintendo 7 8 -----------------------------------------------------------------------*/ 9 10 #ifndef __DOLPHIN_TO_WIN32_H__ 11 #define __DOLPHIN_TO_WIN32_H__ 12 13 // HEADER INCLUDE 14 // ================ 15 #include <stdio.h> 16 #include "../dolphin/types.h" 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 // DEFINES 23 // ================ 24 #define OSContext void 25 #define OSReport printf 26 #define OSTick s32 27 //#define DCInvalidateRange(p,i) {} 28 //#define DCFlushRange(p,i) {} 29 #define OSGetTick GetTickCount 30 #define OSTicksToSeconds(t) ((t)/1000) 31 #define OSSecondsToTicks(t) ((t)*1000) 32 33 #ifndef ASSERT 34 #define ASSERT(a) (((a)!=0)?(puts("ASSERT")):0) 35 #endif 36 37 #ifdef __cplusplus 38 } 39 #endif 40 41 #endif// 42