You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
931 B

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#ifdef UNIQUAKE_EXPORTS
#define UNIQUAKE_API __declspec(dllexport)
#else
#define UNIQUAKE_API __declspec(dllimport)
#endif
typedef struct unity_syscalls_s
{
void *target;
void(*SysPrint)(void *target, const char *msg);
void(*SysError)(void *target, const char *msg);
void(*SysQuit)(void *target);
double(*SysFloatTime)(void *target);
int(*SysFileOpenRead)(void *target, char *path, int *hndl);
int(*SysFileOpenWrite)(void *target, char *path);
void(*SysFileClose)(void *target, int handle);
void(*SysFileSeek)(void *target, int handle, int position);
int(*SysFileRead)(void *target, int handle, void *dest, int count);
int(*SysFileWrite)(void *target, int handle, void *data, int count);
int(*SysFileTime)(void *target, char *path);
void(*SysMkDir)(void *target, char *path);
} unity_syscalls_t;
extern const unity_syscalls_t *unity_syscalls;