Defined(my_macro,#PB_Macro)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Defined(my_macro,#PB_Macro)

Post by Seymour Clufley »

Would this be possible?
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Defined(my_macro,#PB_Macro)

Post by Fred »

'my_macro' will be changed with the macro content if it is already declared, so it won't work.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Defined(my_macro,#PB_Macro)

Post by Trond »

How about giving the macro name as a string, then?
Post Reply