flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > can I stop compiling?

Author
Thread Post new topic Reply to topic
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix
Hello,everybody?
For examle, I use 'display' to show an error message, and I want to stop compiling with an error, just like FASM does it.
Is it possible to stop compiling from the source code?

Thanks.

_________________
Flat Assembler is the best!
Post 14 Dec 2004, 09:08
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Of course, you can use conditional assembly macros and when they are met, some unknown function is called. You can name it 3FC6X or whatever - then your compiler stops there.

Although...I don't know any elegant way to do that.
Post 14 Dec 2004, 13:53
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix
Thanks a lot, Madis731!

As I have seen later, this question have been discussed already. One of solutions was to insert string like this in cource code after error:
"break due to errors" (or something else)
It is the same as you offered.

Thanks again.
Post 14 Dec 2004, 14:25
View user's profile Send private message 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.