mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
* Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst
59 lines
1.2 KiB
C
59 lines
1.2 KiB
C
#ifndef _DOLPHIN_TYPES_H_
|
|
#define _DOLPHIN_TYPES_H_
|
|
|
|
typedef signed char s8;
|
|
typedef unsigned char u8;
|
|
typedef signed short int s16;
|
|
typedef unsigned short int u16;
|
|
typedef signed long s32;
|
|
typedef unsigned long u32;
|
|
typedef signed long long int s64;
|
|
typedef unsigned long long int u64;
|
|
|
|
typedef volatile u8 vu8;
|
|
typedef volatile u16 vu16;
|
|
typedef volatile u32 vu32;
|
|
typedef volatile u64 vu64;
|
|
typedef volatile s8 vs8;
|
|
typedef volatile s16 vs16;
|
|
typedef volatile s32 vs32;
|
|
typedef volatile s64 vs64;
|
|
|
|
typedef float f32;
|
|
typedef double f64;
|
|
|
|
typedef volatile f32 vf32;
|
|
typedef volatile f64 vf64;
|
|
|
|
typedef char *Ptr;
|
|
|
|
typedef int BOOL;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
#define FALSE 0
|
|
#define TRUE 1
|
|
|
|
#if defined(__MWERKS__)
|
|
#define AT_ADDRESS(addr) : (addr)
|
|
#elif defined(__GNUC__)
|
|
//#define AT_ADDRESS(addr) __attribute__((address((addr))))
|
|
#define AT_ADDRESS(addr) // was removed in GCC. define in linker script instead.
|
|
#else
|
|
#error unknown compiler
|
|
#endif
|
|
|
|
#define ATTRIBUTE_ALIGN(num) __attribute__((aligned(num)))
|
|
|
|
#ifndef NULL
|
|
#ifdef __cplusplus
|
|
#define NULL 0
|
|
#else
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
#endif
|
|
|
|
#include "stddef.h"
|
|
|
|
#endif
|