flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > I don't like new import macro "api" where it is

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 21 Nov 2006, 13:07
i had to change this nice code:
Code:
        ;standard FASM macros for importing
        include "%FASMINC%/macro/import32.inc"

        ;imports that FASMLIB needs
        library kernel32, "kernel32.dll", \
                user32, "user32.dll"

        include "%FASMINC%/APIA/kernel32.inc"
        include "%FASMINC%/APIA/user32.inc"    


to ugly andconfusing:

Code:
        ;standard FASM macros for importing
        include "%FASMINC%/macro/import32.inc"

        ;imports that FASMLIB needs
        library kernel32, "kernel32.dll", \
                user32, "user32.dll"

        macro api [a] {} ;WTF?
        include "%FASMINC%/API/kernel32.inc"
        include "%FASMINC%/API/user32.inc"    


grrrrr! Evil or Very Mad
Post 21 Nov 2006, 13:07
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 21 Nov 2006, 13:39
where from it appeared?
===
i see...
you can hide this macro somewhere in supporting includes or use win32a.inc
===
or still use apia/apiw folders


Last edited by shoorick on 21 Nov 2006, 13:56; edited 1 time in total
Post 21 Nov 2006, 13:39
View user's profile Send private message Visit poster's website Reply with quote
Raedwulf



Joined: 13 Jul 2005
Posts: 375
Location: United Kingdom
Raedwulf 21 Nov 2006, 13:53
vid wrote:

i had to change this nice code:
to ugly andconfusing:


I'm so sorry vid Sad, forgive me. Embarassed
maybe I should have left you in blissful ignorance ^^ Wink.

_________________
Raedwulf
Post 21 Nov 2006, 13:53
View user's profile Send private message MSN Messenger Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 14 Dec 2006, 01:42
Since i'm still new to assembly i miss the reson behind alot of this stuff including the reloc, since things appear to work fine without it... anyway...

Code:
macro api [a] {} ;WTF?     


If i'm reading that correctly, it should be creating a macro that takes 1 param, and does absolutely nothing with it... For future referance (and maybe to prevent issues in the future for me and others who don't know why we need it there), could you explain why we need it there? lol
Post 14 Dec 2006, 01:42
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Dec 2006, 03:14
look at the two include files following the macro declaration. It's used there
Post 14 Dec 2006, 03:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 14 Dec 2006, 03:21
When i go into the include directory i see na APIA and an APIW, but not an API, and looking at those 2 files in the APIA, i didn't see where it used it, maybe i'm just missing something. lol
Post 14 Dec 2006, 03:21
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Dec 2006, 03:52
you have old FASM version
Post 14 Dec 2006, 03:52
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 14 Dec 2006, 04:02
Jeeze, i didn't know that a new one came out, but i still can't see how anything could possibly use an empty struct constructively (no pun intended).
Post 14 Dec 2006, 04:02
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Dec 2006, 12:40
just try to remove it and recompile
Post 14 Dec 2006, 12:40
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.