Skip to content

Instantly share code, notes, and snippets.

@mystor
Created December 2, 2014 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mystor/a8bb6966c822266e87b7 to your computer and use it in GitHub Desktop.
Save mystor/a8bb6966c822266e87b7 to your computer and use it in GitHub Desktop.
Horrible SDL Hack
#include "test.h"
int main() {
return real_main();
}
#!/bin/sh
gcc -o main main.c test.c -lSDL
#include<SDL/SDL.h>
int real_main() {
puts("This is the real main!\n");
}
int real_main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment