flat assembler
Message board for the users of flat assembler.

Index > Main > Conditional defining

Author
Thread Post new topic Reply to topic
Foamplast



Joined: 07 May 2004
Posts: 36
Location: Saratov, Russia
Foamplast 14 Jul 2004, 22:20
Does anybody know, can one conditionally define structures in FASM?
That is how to translate to FASM the following?:

Code:
typedef struct tagTVINSERTSTRUCTA {
    HTREEITEM hParent;
    HTREEITEM hInsertAfter;
#if (_WIN32_IE >= 0x0400)
    union
    {
        TVITEMEXA itemex;
        TV_ITEMA  item;
    } DUMMYUNIONNAME;
#else
    TV_ITEMA item;
#endif
} TVINSERTSTRUCTA, *LPTVINSERTSTRUCTA;
    


Now I define multiple versions of structures. It is not convenient, especially in case of modification of the structure.

This is not related to Windows only, but to any other complex system.
Post 14 Jul 2004, 22:20
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 14 Jul 2004, 23:43

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 14 Jul 2004, 23:43
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 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.