mirror of
https://github.com/pmret/papermario.git
synced 2024-09-18 23:42:35 +02:00
Permuter fix 3
This commit is contained in:
parent
555102c17c
commit
c0b67ce0d4
@ -4,18 +4,14 @@
|
|||||||
#define STRINGIFY_(x) #x
|
#define STRINGIFY_(x) #x
|
||||||
#define STRINGIFY(x) STRINGIFY_(x)
|
#define STRINGIFY(x) STRINGIFY_(x)
|
||||||
|
|
||||||
#if !defined(SPLAT) && !defined(__CTX__)
|
#if !defined(SPLAT) && !defined(__CTX__) && !defined(PERMUTER)
|
||||||
#ifndef INCLUDE_ASM
|
#ifndef INCLUDE_ASM
|
||||||
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...) \
|
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...) \
|
||||||
TYPE NAME(ARGS); \
|
TYPE NAME(ARGS); \
|
||||||
TYPE __attribute__((naked)) NAME(ARGS) { __asm__( ".include \"ver/"STRINGIFY(VERSION)"/asm/nonmatchings/"FOLDER"/"#NAME".s\"\n.set reorder\n.set at"); }
|
TYPE __attribute__((naked)) NAME(ARGS) { __asm__( ".include \"ver/"STRINGIFY(VERSION)"/asm/nonmatchings/"FOLDER"/"#NAME".s\"\n.set reorder\n.set at"); }
|
||||||
#endif
|
#endif
|
||||||
#ifndef PERMUTER
|
|
||||||
__asm__( ".include \"include/macro.inc\"\n");
|
__asm__( ".include \"include/macro.inc\"\n");
|
||||||
#else
|
#else
|
||||||
void __attribute__((naked)) dummy_permuter_func(void) { __asm__( ".include \"include/macro.inc\"\n"); }
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...)
|
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user