flat assembler
Message board for the users of flat assembler.

Index > Main > "defined" problem

Author
Thread Post new topic Reply to topic
quiveror



Joined: 20 Jun 2003
Posts: 34
quiveror 04 Jul 2004, 16:56
Code:
format MS COFF
    if ~ defined foo
    extrn foo:dword
 end if
section '.text' code readable executable
 public _demo
 _demo:
        ret
    

fasm gave error "code cannot be generated" I guess the above compiled fine with older version (1.4x) what am i missing ?
Post 04 Jul 2004, 16:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 04 Jul 2004, 17:12
since 1.51 (i think) "defined" behavior has changed. Now it checks whether symbol is defined *anywhere& in source (not only before usage of "defined". But this way,
if ~dfefined a
a=1 ;define a here
end if
is illogical, because it is somthing like "if a is not defined then a is defined".

check http://board.flatassembler.net/topic.php?t=1581
Post 04 Jul 2004, 17:12
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.