Last active
February 6, 2023 12:59
-
-
Save MXP2095onetechguy/ae1b95b3e60edf968c24ee47c674d84a to your computer and use it in GitHub Desktop.
ChatGPT made this abomination when I ask for a C header that may potentially be harmful.
This file contains hidden or 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
| /// DangerDream.h, the worst things to commit to a C preprocessor. | |
| /// MXPSQL asked ChatGPT to write something that started off as a prank, but became worse and it came out with this masterpiece. | |
| /// Made in February 6, 2023 | |
| /// | |
| /// Copyright 2023, MXPSQL | |
| /// | |
| /// Copying and distribution of this file, with or without modification, are permitted in any medium without royalty, provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. | |
| #ifndef DANGERDREAM_H | |
| #define DANGERDREAM_H | |
| #define for while | |
| #define void int | |
| #define long double | |
| #define char float | |
| #define return void | |
| #define break continue | |
| #define continue goto | |
| #define goto switch | |
| #define switch case | |
| #define & * | |
| #define * & | |
| #define < > | |
| #define > < | |
| #define + - | |
| #define - + | |
| #define & | | |
| #define | & | |
| #define ^ ~ | |
| #define ~ ^ | |
| #define << >> | |
| #define >> << | |
| #define ( ) | |
| #define ) ( | |
| #define { } | |
| #define } { | |
| #define [ ] | |
| #define ] [ | |
| #define , ; | |
| #define ; , | |
| #define = == | |
| #define == = | |
| #define sizeof typeof | |
| #define typeof sizeof | |
| #define NULL size_t | |
| #define size_t NULL | |
| #define malloc calloc | |
| #define calloc malloc | |
| #define strlen strdup | |
| #define strdup strlen | |
| #define memcpy strncpy | |
| #define strncpy memcpy | |
| #define pthread_create CreateThread | |
| #define CreateThread pthread_create | |
| #define printf fprintf | |
| #define fprintf printf | |
| #define malloc realloc | |
| #define realloc malloc | |
| #define free exit | |
| #define exit free | |
| #define memset strcpy | |
| #define strcpy memset | |
| #define ever (;;) | |
| #define forever for(;;) | |
| #define nevercrasher forever { abort(); } | |
| #define no false | |
| #define nah no | |
| #define yes true | |
| #define sure yes | |
| #define pipebomb { fork(); fork(); } | |
| #define pipedream forever { pipebomb nevercrasher } | |
| #define spam printf("SPAM"); | |
| #define if(x) if(x && ((__LINE__ % 15 == 0))) | |
| #define while(x) while(x && ((__LINE__ % (rand() * 10)) == 0)) | |
| #define % NULL | |
| #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment