How about your own perl wrapper before you give it for
compilation/pre-procesessing? I'm guessing it should work.
knk
On 9/25/07, RAVI <[EMAIL PROTECTED]> wrote:
>
> hello everybody,
>
> I am writing a small application where my main function should be
> executed instead before users' main funciton.
>
> For that I have #defined main function:
>
> #define main(a,b) main(int argc,char *argv[]){
> my_function();
> user_main();
> }
> user_main(a,b)
>
> Here my problem is that, How do I handle the case when the user don't
> have the arguments to main function?
> like int main()............
>
> If I #define for two possibilities the second one is over writing the
> first one.
>
> May I have some suggestions or ideas here?
>
> -- Thanks in advance
> Ravi.T
>
>
>