libctru  v2.4.1
asminc.h
1 #pragma once
2 
3 #if !__ASSEMBLER__
4  #error This header file is only for use in assembly files!
5 #endif // !__ASSEMBLER__
6 
7 .macro BEGIN_ASM_FUNC name, linkage=global, section=text
8  .section .\section\‍().\name, "ax", %progbits
9  .align 2
10  .\linkage \name
11  .type \name, %function
12  .func \name
13  .cfi_sections .debug_frame
14  .cfi_startproc
15  \name:
16 .endm
17 
18 .macro END_ASM_FUNC
19  .cfi_endproc
20  .endfunc
21 .endm