mirror of https://github.com/pmret/papermario.git
declare M in map.h
This commit is contained in:
parent
ccfe465f3b
commit
1dc8a3583d
|
|
@ -48,4 +48,7 @@
|
|||
// Fixed-point short literal
|
||||
#define F16(f) (s16)(f * 327.67f)
|
||||
|
||||
#define _NAMESPACE(x, y) x ## _ ## y
|
||||
#define NAMESPACE(x, y) _NAMESPACE(x, y)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
// TODO: consider moving Npc here
|
||||
|
||||
#define M(sym) NAMESPACE(MAP_NAME, sym)
|
||||
|
||||
#define ENTRY_COUNT(entryList) (sizeof(entryList) / sizeof(Vec4f))
|
||||
|
||||
typedef Vec4f EntryList[];
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include "common.h"
|
||||
#include "map.h"
|
||||
|
||||
#define M(sym) kmr_12 ## _ ## sym
|
||||
#define MAP_NAME kmr_12
|
||||
|
||||
#define NpcId_GOOMBA 0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue