2024-02-18 03:11:07 +00:00
|
|
|
#ifndef __PATCH_HELPERS_H__
|
|
|
|
#define __PATCH_HELPERS_H__
|
|
|
|
|
|
|
|
#ifdef MIPS
|
|
|
|
#include "ultra64.h"
|
|
|
|
#else
|
2024-06-03 19:54:56 +00:00
|
|
|
#include "librecomp/recomp.h"
|
2024-02-18 03:11:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
# define EXTERNC extern "C"
|
|
|
|
#else
|
|
|
|
# define EXTERNC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MIPS
|
|
|
|
# define DECLARE_FUNC(type, name, ...) \
|
|
|
|
EXTERNC type name(__VA_ARGS__)
|
|
|
|
#else // MIPS
|
|
|
|
# define DECLARE_FUNC(type, name, ...) \
|
|
|
|
EXTERNC void name(uint8_t* rdram, recomp_context* ctx)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|