Files
perfect_dark/port/include/system.h
T
fgsfds 7e71450a76 port: wrap malloc & co
in case we'll need allocation stats or something later
2023-08-20 14:56:07 +02:00

18 lines
367 B
C

#ifndef _IN_SYSTEM_H
#define _IN_SYSTEM_H
#include <PR/ultratypes.h>
u64 sysGetTicks(void);
u64 sysGetTicksPerSecond(void);
void sysFatalError(const char *fmt, ...) __attribute__((noreturn));
void sysGetExecutablePath(char *outPath, const u32 outLen);
void *sysMemAlloc(const u32 size);
void *sysMemZeroAlloc(const u32 size);
void sysMemFree(void *ptr);
#endif