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

goto is good

Name: Anonymous 2012-06-11 22:02

if you think otherwise you're a trendfag. goto is far more efficient than function calls for short blocks of code (lol compiler ignoring inline) and have a lot of neat applications.

Name: Anonymous 2012-06-12 8:31

>>23
there's a lot of yiffing, you could instead
#define TRY(X, Y) if(X) goto Y;
since encapsulating the section of error handling is unpractical.

#define TRY(X, Y) if(X) goto Y;
int func(){
    TRY(func2(23), EAGAIN);
    return 0;
    EAGAIN:
          fprintf(stderr, "Error occurred!\n");
            return -1;
}

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