#PB_Macro for Defined()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

#PB_Macro for Defined()

Post by AND51 »

Hello!

The title already bespeaks this topic's aim:

I saw that there is no way to find out, whter a macro is already defined. For example, you can use this function to detect, wheter "Macro getArrayLength" is already created; if so, then you know that you mustn't define this macro twice. This could be useful, if you create an include you want to make public that everybody can use. Those who are using your include then don't have to edit the include for double declarations.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hi AND51,

already requested (do a little search before posting) :wink:


http://www.purebasic.fr/english/viewtopic.php?t=21355
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply