NO

Author Topic: Inline string literals  (Read 2846 times)

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
Inline string literals
« on: September 23, 2017, 09:25:05 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
Code it... That's all...