Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Useful C Macros

Name: Anonymous 2010-01-12 15:24

Let's share the macros we use that make our C code really EXPERT!!

Right now I'm specifically interested in macros to add half-assed object orientation. Thanks!!

I'll contribute myself:
#define mainstart int main(int argc, char **argv) {

Name: Anonymous 2010-01-14 11:29

>>26
The 'do while' still needs a semicolon to end the statement, whereas a scope would not. This means that if(foo) swap(int, a, b); else bar(); will work with >24's solution, but not with a simple scope.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List