mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-06 05:54:59 -04:00
0f0ff04779
* build OK macOS * add macOS building instructions * change return type of func_8000546C * prevent gitattributes from removing CRLF from ido binaries
14 lines
355 B
C
Executable File
14 lines
355 B
C
Executable File
#ifndef HELPERS_H
|
|
#define HELPERS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MEM_U32(a) (*(uint32_t *)(mem + a))
|
|
#define MEM_S32(a) (*(int32_t *)(mem + a))
|
|
#define MEM_U16(a) (*(uint16_t *)(mem + ((a) ^ 2)))
|
|
#define MEM_S16(a) (*(int16_t *)(mem + ((a) ^ 2)))
|
|
#define MEM_U8(a) (*(uint8_t *)(mem + ((a) ^ 3)))
|
|
#define MEM_S8(a) (*(int8_t *)(mem + ((a) ^ 3)))
|
|
|
|
#endif
|