flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [fasmg] debug helper macros

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 3290
Location: vpcmipstrm
bitRAKE
Code:
; show assert result instead of stopping
macro _assert T&
  local R
  R='FAIL'
  eval 'if ',`T
    R='PASS'
  end if
  display R,': assert ',`T,10
end macro    
...just a different way to look code checks.

_________________
¯\(°_o)/¯ unlicense.org
Post 08 Mar 2021, 05:02
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7925
Location: Kraków, Poland
Tomasz Grysztar
Why do you use EVAL there? Does it solve some specific issue?
Post 08 Mar 2021, 07:57
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3290
Location: vpcmipstrm
bitRAKE
Ah, it works without it. Nice. Very Happy

_________________
¯\(°_o)/¯ unlicense.org
Post 08 Mar 2021, 09:25
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.