We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
GreenLightning
I like the function signature macro which I learned from Casey's Working on The Witness blog seri…
»
Timothy Wright
The KISS engine has some fun macros for debugging and testing code (using code from "Learn C the …
»
Jack Mott
I am working on a text adventure engine, and there are little grammar things that come up all the…
»
ratchetfreak
cmuratori I am skeptical that these computed gotos are necessary to get the "improved" performanc…
»
Ginger Bill
Here are some of my favourites: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2…
»
rizoma
you forgot to paste the win32_handmade.h file, so I can't check but.. You should try this: chang…
»
rizoma
mmozeiko As you can see it references array with global symbol "name.1758" - no initialization is…
»
Mārtiņš Možeiko
I was talking about VS2013 which doesn't understand -Wv:18 argument. It's actually an error, not …
»
Mārtiņš Možeiko
I have used computed goto for gcc compiler before and it does creates better code. Here's a micr…
»
Benjamin Pedersen
mmozeiko But adding -Wv:18 will generate warning for VS2013 users. Maybe, but I tried using -Wv:3…
»
Casey Muratori
I am skeptical that these computed gotos are necessary to get the "improved" performance. For ex…
»
Simon Anciaux
Thanks, I wanted to be sure I wasn't misunderstanding what the lfb was.
»
Mārtiņš Možeiko
Computed goto statements are a very nice thing. They allow to create lower-overhead interpreters …
»
Mārtiņš Možeiko
That's how Casey is using real windows.h - he directly calls W or A functions. No need for macros.
»
Sean Barrett
This is technically outside the scope of stb_truetype; what the font defines the values to and wh…
»
ratchetfreak
Mr4thDimention My favorite macro trick is for making something that looks like a resumable functi…
»
Allen Webster
My favorite macro trick is for making something that looks like a resumable function call, sort o…
»
PassiveCoder
I like that even more, good thinking.
»
Daniel Rasmussen
Here's a little trick to creating generic functions and types. Multiple include with the same fil…
»
ratchetfreak
Horrowind Not too interesting, but funny: 1#define private public That's not complete without…
»
Jason
I wonder if some kind soul could spend some time and tell me where I went wrong with the live cod…
»
Horrowind
Not too interesting, but funny: 1#define private public
»
Casey Muratori
Thanks for the kind words! Really glad the series had that effect. It's had the same effect for…
»
Randy Gaul
When I did this I didn't bother replicating the macros, and instead hard-coded with A suffixes. S…
»
Abner Coimbre
Extended Public Beta The fixing of the bugs has led Jeroen to redesign some key aspects of the d…
»
Bl00drav3n
Regarding the latest episode, where Casey thought about calling pow(x, 2.2) for gamma correction,…
»
PassiveCoder
oh nice catch, thanks mmozeiko
»
Mārtiņš Možeiko
But adding -Wv:18 will generate warning for VS2013 users. VS2015 users need to modify build scrip…
»
Mārtiņš Možeiko
I dislike macros that create multiple statements. Doing them for definitions or declarations is f…
»
Mārtiņš Možeiko
That's wrong. It should be GetModuleHandleW, because you are using LPCWSTR argument. That is wide…
»