The MASM Forum

Projects => Poasm => Topic started by: Vortex on September 24, 2017, 07:32:29 PM

Title: Inline string literals
Post by: Vortex on September 24, 2017, 07:32:29 PM
Here is a macro example to specify inline string literals :

Code: [Select]
.386
.model flat,stdcall
option casemap:none

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

include CstrMacro.asm

.code

start:

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

    invoke  ExitProcess,0

END start
Title: Re: Inline string literals
Post by: ragdog on September 25, 2017, 12:42:38 AM
Nice thank you