Wrap __asm__ for macro inclusion in a dummy function for the permuter (#203)

This commit is contained in:
Ethan Roseman 2021-03-09 23:10:55 -05:00 committed by GitHub
parent a923a3f1b8
commit f3b6e497b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,12 @@
TYPE NAME(ARGS); \
TYPE __attribute__((naked)) NAME(ARGS) { __asm__( ".include \"ver/"STRINGIFY(VERSION)"/asm/nonmatchings/"FOLDER"/"#NAME".s\"\n.set reorder\n.set at"); }
#endif
#ifndef PERMUTER
__asm__( ".include \"include/macro.inc\"\n");
#else
void __attribute__((naked)) dummy_permuter_func(void) { __asm__( ".include \"include/macro.inc\"\n"); }
#endif
#else
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...)
#endif