Contents:
why dont you need to extern it?
is that c89 compatible?
does gcc header checking still work when you do that?
Wait, you can put #include headers in main() ?
why dont you need to extern it?
is that c89 compatible?
does gcc header checking still work when you do that?
Wait, you can put #include headers in main() ?
yabadaba doo 2022-08-28 06:30:16
capezotte 2022-08-28 06:30:04
they are less fragile than macros
okay fair
yabadaba doo 2022-08-28 06:30:21
preproc do be kinda jank
capezotte 2022-08-28 06:31:31
extra parentheses and do { } while (0) go brrr
yabadaba doo 2022-08-28 06:31:40
define main 😎
2022-08-28 06:32:21

This is how you code in C
2022-08-28 06:32:26
Haters will say no
yabadaba doo 2022-08-28 06:32:46
2022-08-28 06:32:21
This is how you code in C
holy shit based
2022-08-28 06:33:02
2022-08-28 06:32:21
This is how you code in C
This unironically compiles even in tcc
capezotte 2022-08-28 06:33:03
2022-08-28 06:32:21
This is how you code in C
dijkstrafriends seething
yabadaba doo 2022-08-28 06:33:04
why dont you need to extern it?
2022-08-28 06:33:43
yabadaba doo 2022-08-28 06:33:04
why dont you need to extern it?
I can forward declare functions inside a function in C
2022-08-28 06:33:51
It’s in the standard
yabadaba doo 2022-08-28 06:33:55
gcc complains tho
2022-08-28 06:34:03
Nested functions are a GNU extension
2022-08-28 06:34:05
yabadaba doo 2022-08-28 06:33:55
gcc complains tho
weird
yabadaba doo 2022-08-28 06:34:09
wait lemme try
capezotte 2022-08-28 06:34:18
yea, implicit function definition invalid in c99 or w/e
yabadaba doo 2022-08-28 06:34:21
oh the fuck
yabadaba doo 2022-08-28 06:34:24
didnt know
yabadaba doo 2022-08-28 06:34:28
is that c89 compatible?
2022-08-28 06:34:29
capezotte 2022-08-28 06:34:18
yea, implicit function definition invalid in c99 or w/e
I included all headers
2022-08-28 06:34:56
yabadaba doo 2022-08-28 06:34:28
is that c89 compatible?
No, it uses c99 shit like size_t and uint64_t
yabadaba doo 2022-08-28 06:35:03
i meant the forward declaration
capezotte 2022-08-28 06:35:12
2022-08-28 06:34:29
I included all headers
just noticed Factorial was declared in the function
2022-08-28 06:35:13
yabadaba doo 2022-08-28 06:35:03
i meant the forward declaration
Probably?
capezotte 2022-08-28 06:35:18
Hi dad I’m dumb
yabadaba doo 2022-08-28 06:35:34
does gcc header checking still work when you do that?
2022-08-28 06:35:37
capezotte 2022-08-28 06:35:12
just noticed Factorial was declared in the function
Yeah that’s why including stdio.h in the function work too
capezotte 2022-08-28 06:36:29
typedefs work within functions
mind = blown
mind = blown
yabadaba doo 2022-08-28 06:37:16
well imma stop saying extern everytime like a retard now
2022-08-28 06:37:31
In dlang you can even import modules inside a loop
2022-08-28 06:37:35
based retards
yabadaba doo 2022-08-28 06:37:37
hahah
yabadaba doo 2022-08-28 06:38:05
rip uncle ritchie, thnks for the gifts 🥲
lanciagreggori 2022-08-28 07:18:17
2022-08-28 06:32:21
This is how you code in C
Wait, you can put #include headers in main() ?