Qbasicnews.com

Full Version: Another "feature" request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
heh I have yet another wierd idea.

that macros would act as a define as well. So I could basically do smth like this:
Code:
#define stupid(i, m, k) _
   #ifdef i : _
      option1 - would evulated if I had passed i : _
   #else : _
      option2 - when I hadn't passed i : _
   #ifdef m : _
etc...

'and I could call the thingy like this:
stupid( 1, 3, 4) 'all i , m  and k would be defined
stupid( , 3, 4) 'i would be not defined
stupid( , , ) 'nothing would be defined.

This would allow creating some interesting (and complex Big Grin ) commands that have different behavious and so onTongue

Of course even better would be If I could ecen test their value.