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: 4227
Location: vpcmpistri
bitRAKE 08 Mar 2021, 05:02
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)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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: 8394
Location: Kraków, Poland
Tomasz Grysztar 08 Mar 2021, 07:57
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: 4227
Location: vpcmpistri
bitRAKE 08 Mar 2021, 09:25
Ah, it works without it. Nice. Very Happy

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.