https://git.reactos.org/?p=reactos.git;a=commitdiff;h=11e0ed3c2bafb92793085…
commit 11e0ed3c2bafb92793085090272cda5d200a8595
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Fri Apr 22 01:15:40 2022 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Wed May 25 23:16:04 2022 +0200
[ASM x64] Fix UNIMPLEMENTED macro for MSVC
---
sdk/include/asm/asm.inc | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc
index de46fb5c963..7b3df60e6b1 100644
--- a/sdk/include/asm/asm.inc
+++ b/sdk/include/asm/asm.inc
@@ -189,8 +189,23 @@ data32 MACRO opcode:VARARG
opcode
ENDM
-UNIMPLEMENTED MACRO name
+UNIMPLEMENTED2 MACRO file, line, func
+ jmp UNIMPLEMENTED2_IMPL
+UNIMPLEMENTED_MSG: .ascii "WARNING: %s at %s:%d is UNIMPLEMENTED!", 10, 0
+UNIMPLEMENTED_FUNC: .ascii "&func&", 0
+UNIMPLEMENTED_FILE: .ascii file, 0
+EXTERN DbgPrint:PROC
+UNIMPLEMENTED2_IMPL:
+ sub rsp, 28h
+ mov r9, line
+ lea r8, UNIMPLEMENTED_FILE
+ lea rdx, UNIMPLEMENTED_FUNC
+ lea rcx, UNIMPLEMENTED_MSG
+ call DbgPrint
+ add rsp, 28h
+ xor eax, eax
ENDM
+#define UNIMPLEMENTED UNIMPLEMENTED2 __FILE__, __LINE__,
absolute MACRO address
__absolute__address__ = address
@@ -389,7 +404,7 @@ ENDM
.macro UNIMPLEMENTED2 file, line, func
jmp 4f
-1: .ascii "Unimplemented", CR, LF, NUL
+1: .ascii "Unimplemented %s (%s:%d)", CR, LF, NUL
2: .asciz "\func"
3: .asciz \file
4: