#define browse(P,O) _browse_proccess(P,O)
...I should still be able to use it like:
browse(page)
Dream Maker should automatically plug in the 'O' argument as 'null'.
This restriction is harming these macros' usefulness.
ID:134266
Dec 16 2006, 9:43 am
|
|
If I define a macro like with
#define browse(P,O) _browse_proccess(P,O)
...I should still be able to use it like: browse(page) Dream Maker should automatically plug in the 'O' argument as 'null'. This restriction is harming these macros' usefulness. |
In response to Yota
|
|
Yota wrote:
Can macros be overloaded? #define browse(P) _browse_proccess(P) If not, then there is my suggestion. =p Nope, they can't (otherwise this suggestion would be obsoleted, since yeah, that would do). Only normal macros (with no arguments) can be #defined multiple times. With "argumented" #defines, the next define overwrites the previous. :\ #define my_define(X,Y) (X+Y) |
If not, then there is my suggestion. =p