Useful C defines
1
Name:
Anonymous
2009-06-28 14:05
#define PROGRAMSTART int main(argc,char *argv[]){;
#define PROGRAMEND ;return 0;}
#define ENDFOR ;}
#define ENDWHILE ;}
#define ENDIF ;}
#define END }
#define POINTER *
#define VALUEAT &
#define EQUALS ==
#define NOTEQUAL !=
#define OR ||
#define AND &&
2
Name:
Anonymous
2009-06-28 14:06
Please use [code] tags. Thank you.
3
Name:
Anonymous
2009-06-28 14:45
#define PROGRAMSTART int main(argc,char *argv[]){;
#define PROGRAMEND ;return 0;}
#define ENDFOR ;}
#define ENDWHILE ;}
#define ENDIF ;}
#define END }
#define POINTER *
#define VALUEAT &
#define EQUALS ==
#define NOTEQUAL !=
#define OR ||
#define AND &&
4
Name:
Anonymous
2009-06-28 16:06
Great, now C is QBasic.
5
Name:
Anonymous
2009-06-28 16:15
You didn't expect this to compile, did you?
6
Name:
Anonymous
2009-06-28 16:23
;}
7
Name:
Anonymous
2009-06-28 16:51
#define make int
#define sandwiches main(int argc, char **argv)
#define becomes =
#define right? {
#define understand? }
#define yeah? ;
#define that (
#define was )
#define nice )
#define asshole(x) #x
#define tell puts
#define stupid return
#define wine 32
#define idiot 0
make sandwiches right?
make water yeah?
water becomes wine yeah?
tell that asshole that food was nice yeah?
stupid idiot;
understand?
8
Name:
Anonymous
2009-06-28 16:56
9
Name:
Anonymous
2009-06-28 21:13
I am too lazy to /prog/ scrape it, but there is already a thread like this somewhere with much better #defines.
10
Name:
Anonymous
2009-06-28 21:28
11
Name:
Anonymous
2009-06-29 0:18
>>7
You can't use question marks in macros and food is undeclared.
12
Name:
Anonymous
2009-06-29 0:41
#define 0 1
#define true 0
#define 1 true
#define false 1
#define if while
13
Name:
Anonymous
2009-06-29 3:48
>>11
doesn't
tell that asshole that food was nice yeah?
become
puts ( asshole ( food ) );
and it would somehow change to
puts ( "food" );
?
14
Name:
Anonymous
2009-06-29 4:06
Prelude> puts ( "food" );
<interactive>:1:15: parse error on input `;'
15
Name:
Anonymous
2009-06-29 7:51
>>14
More like
Prelude> puts ( "food" );
fo*** Exception: stack overflow
16
Name:
Anonymous
2009-06-29 8:16
>>11
You should learn to stringize one day.
17
Name:
Anonymous
2009-06-29 11:08
sudo make me a sandwich yeah? xD
18
Name:
Anonymous
2009-06-29 11:14
>>17
back to /xkcd/ ubuntu-boy
19
Name:
Anonymous
2009-06-29 11:21
>>18
I use Ubanto, don't insult me.
20
Name:
Anonymous
2009-06-29 11:24
I used to use ubunto. Now I use debian because im hardcore
21
Name:
Anonymous
2009-06-29 11:27
The difference is, Ubanto has config files by default with the good config you might want to tweak, while Debian has nothing and you have to write all from scratch.
22
Name:
Anonymous
2009-06-29 12:16
>>20
debian [...] hardcore
;-)
23
Name:
Anonymous
2009-06-29 14:04
>>22
Debian is hardcore... if you want to actually try to use it to do anything useful.
24
Name:
Anonymous
2009-06-29 14:21
>>23
debian is practically ubanto.
try a distro that doesn't include any of that package management faggotry and doesn't come with an x server.
25
Name:
Anonymous
2009-06-29 14:39
>>24
NO THANK YOU
Why would I not make use of useful tools?
26
Name:
Anonymous
2009-06-29 14:42
>>25
You are obviously not hardcore.
27
Name:
Anonymous
2009-06-29 14:57
>>24
I use
Arch, it's hardcore enough for me.
28
Name:
Anonymous
2009-06-29 15:22
fucks like dick
29
Name:
Anonymous
2009-06-29 21:39
Use BSD guys. These systems require much more work which means they're more hardcore.
30
Name:
Trollbot9000
2009-07-01 8:30
The red green blue.
31
Name:
Anonymous
2010-11-28 14:30