https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bab23a250bfbbd185b50a64335e5ccf6ec3be6bb

commit bab23a250bfbbd185b50a64335e5ccf6ec3be6bb
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Thu Jan 23 12:45:45 2025 +0200
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Thu Jan 23 23:43:31 2025 +0200

    [ASM] Use macros instead of defines
    
    Defines can cause problems, like previously with the end define, which 
caused a jump to label ".end" to be interpreted as a jump to ".", which is the 
current address, resulting in an infinite loop.
    Remove obsolete CODESEG
---
 sdk/include/asm/asm.inc | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc
index 9af3d164ac9..062b622619b 100644
--- a/sdk/include/asm/asm.inc
+++ b/sdk/include/asm/asm.inc
@@ -319,7 +319,6 @@ ENDM
 .macro align x
     .align x
 .endm
-#define ALIGN align
 
 /* MASM compatible REPEAT, additional ENDR */
 #define REPEAT .rept
@@ -353,8 +352,8 @@ ENDM
 .endm
 
 /* MASM needs an END tag */
-#define END
-#define end
+.macro END
+.endm
 
 .macro .MODEL model
 .endm
@@ -362,7 +361,6 @@ ENDM
 .macro .code
     .text
 .endm
-#define CODESEG .code
 
 .macro .const
     .section .rdata

Reply via email to