Pelles C forum

Pelles C => Bug reports => Topic started by: Vortex on April 17, 2025, 09:46:15 PM

Title: Macro reporting fatal error
Post by: Vortex on April 17, 2025, 09:46:15 PM
Hello,

The code below reports the following error message, tested with Poasm Version 13.00.12 :

Test.asm(20): fatal error: Invalid use of 'Tab'.
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG

include CstrMacro.asm

.data?

str1 dd ?

.code

start:

    invoke  printf,\
            @Cstr("Tab\tcharacter\ttest\nAnother line\qSample line\nEscaped symbol \\\n")

    mov     eax,DWORD PTR [esp-4]
    mov     str1,eax

    invoke  ExitProcess,0

END start

Poasm Version 12.00.1 can assemble the code without any issues.