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

Opengl

Name: Anonymous 2010-02-21 13:51

Riddle me this:

If OpenGL is supposed to be just as good if not even better than Direct3D (Not talking about DirectX here), then why don't developers use OpenGL to program their games generating some extra sales on GNU/Linux and Macintosh?

Name: Anonymous 2010-02-23 2:12

You can do keyword arguments in C, and even optional params.


#include <stdio.h>

int __madlib(int r, char *music, char *language, char *adjective)
{
    printf("I listen to %s while coding in %s because I am %s\n",
        music, language, adjective);
    return r;
}
#define madlib(r, ...) ({ char *music = "Infected Mushroom", *language = "Java", *adjective = "1337"; __VA_ARGS__; __madlib(r, music, language, adjective); })


int main(int argc, char **argv)
{
    return madlib(0, language = "C");
}

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