Hello everybody,
I am writing an application where I will call my function first before
the executing the user's main function.
I would like to write my our main function from which the user main
function has to be called.
i am trying to #define the main function like this:
#define main(a,b) main(a,b){
my_Function();
user_main(argc,argv);
}
user_main(a,b)
This works fine if the user is writing his/her main function as
int main(int argc,char *argv[])
but what if the user is writng main function as
int main()
simply without any arguments.
How do I #define the user main fuction so that any type of user main
function can be replaced .
--
Thanks,
Ravi.T