mirror of https://github.com/pmret/papermario.git
36 lines
771 B
C
36 lines
771 B
C
#ifndef _TYPES_H_
|
|
#define _TYPES_H_
|
|
|
|
#include "ultra64.h"
|
|
|
|
#if (defined(__cplusplus) && __cplusplus >= 201103L)
|
|
/* C++11 or later */
|
|
#include <cstddef>
|
|
#elif (defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202000L))
|
|
/* C23 or later */
|
|
#include <stddef.h>
|
|
#else
|
|
#define nullptr (void*)0
|
|
typedef void* nullptr_t;
|
|
#endif
|
|
|
|
#define UNK_TYPE s32
|
|
#define UNK_PTR void*
|
|
#define UNK_RET void
|
|
#define UNK_FUN_ARG void(*)(void)
|
|
#define UNK_FUN_PTR(name) void(*name)(void)
|
|
#define UNK_ARGS
|
|
|
|
typedef char* (*PrintCallback)(void*, const char*, u32);
|
|
|
|
/// Linker symbol address, as in `ld_addrs.h`.
|
|
typedef u8 Addr[];
|
|
|
|
#define BTL_NONE 0
|
|
#define BTL_DEFAULT_STAGE -1
|
|
|
|
/// Terminates an extraAnimationList
|
|
#define ANIM_LIST_END -1
|
|
|
|
#endif
|