You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
Refresh 16
This commit is contained in:
@@ -25,6 +25,12 @@
|
||||
#define UNUSED
|
||||
#endif
|
||||
|
||||
#ifdef VERSION_CN
|
||||
#define UNUSED_CN UNUSED
|
||||
#else
|
||||
#define UNUSED_CN
|
||||
#endif
|
||||
|
||||
// Avoid undefined behaviour for non-returning functions
|
||||
#ifdef __GNUC__
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
@@ -69,4 +75,17 @@
|
||||
#define VIRTUAL_TO_PHYSICAL2(addr) ((void *)(addr))
|
||||
#endif
|
||||
|
||||
// Stubbed CN debug prints
|
||||
#ifdef VERSION_CN
|
||||
#define CN_DEBUG_PRINTF(args) osSyncPrintf args
|
||||
#else
|
||||
#define CN_DEBUG_PRINTF(args)
|
||||
#endif
|
||||
|
||||
#ifdef VERSION_CN
|
||||
#define FORCE_BSS __attribute__((nocommon)) __attribute__((section (".bss_cn")))
|
||||
#else
|
||||
#define FORCE_BSS
|
||||
#endif
|
||||
|
||||
#endif // MACROS_H
|
||||
|
||||
Reference in New Issue
Block a user