Author Topic: Inline string literals  (Read 210 times)

Vortex

  • Moderator
  • Member
  • *****
  • Posts: 1710
Inline string literals
« 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

ragdog

  • Member
  • ****
  • Posts: 515
Re: Inline string literals
« Reply #1 on: September 25, 2017, 12:42:38 AM »
Nice thank you