Created
December 2, 2014 00:15
-
-
Save mystor/a8bb6966c822266e87b7 to your computer and use it in GitHub Desktop.
Horrible SDL Hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "test.h" | |
int main() { | |
return real_main(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gcc -o main main.c test.c -lSDL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<SDL/SDL.h> | |
int real_main() { | |
puts("This is the real main!\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int real_main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment