News for hackers. Stuff that matters.
Re:How to Pick a Language by bioengineer on Saturday January 24, 2009 @03:42AM (#447908)
If I am understanding you correctly, I believe that it is possible in C, using macros. If you include the following in each file:

#ifndef MAIN_ALREADY_DEFINED__

#define MAIN_ALREADY_DEFINED__

int main(){

/* file specific stuff */

}

#endif

Disclaimer: I wouldn't actually do this in practice...

There are no comments on this comment yet.