[ASM x64] Fix UNIMPLEMENTED macro for MSVC 4465/head
authorMark Jansen <mark.jansen@reactos.org>
Thu, 21 Apr 2022 23:15:40 +0000 (01:15 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Wed, 25 May 2022 21:16:04 +0000 (23:16 +0200)
sdk/include/asm/asm.inc

index de46fb5..7b3df60 100644 (file)
@@ -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: