mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
11 lines
342 B
C
11 lines
342 B
C
#ifndef _MACROS_H_
|
|
#define _MACROS_H_
|
|
|
|
#define INCLUDE_ASM(FOLDER, NAME, ARGS...) \
|
|
__attribute__((naked)) NAME(ARGS) { __asm__( ".include \"asm/nonmatchings/"#FOLDER"/"#NAME".s\"\n.set reorder\n.set at"); }
|
|
|
|
#define ARRAY_COUNT(arr) (s32)(sizeof(arr) / sizeof(arr[0]))
|
|
#define ARRAY_COUNTU(arr) (u32)(sizeof(arr) / sizeof(arr[0]))
|
|
|
|
#endif
|