I dislike macros that create multiple statements. Doing them for definitions or declarations is fi…
That's wrong. It should be GetModuleHandleW, because you are using LPCWSTR argument. That is wide …
In this case it will be even better - compiler will notice that values you are initializing array …
Hi, I'm using stb_truetype.h and I've got some questions on how to properly position characters. I…
rizoma —
While reading the k&r book I found an interesting example (at least for a noob like me) of what I …
Oh my goodness, how embarrassing! That was it, also I had to define GetModuleHandle as GetModuleHa…
You need to wrap the code inside of extern "C" scope: extern "C" { struct HINSTANCE__ { int unuse…
I rather like this idea, the last time I checked the pre-processor output the windows guff made me…
Thanks, I'll look into that one. It's nice to have this topic, always stuff to learn.
Hi everyone :) I'm a long time follower, first time poster, that just want to say a big to Casey …
I like the SCALL! That could come in handy. I just stumbled on another reflection-ish trick with e…
Honestly I'm a big fan of macros, sometimes I even unnecessarily overuse them. I either use it to …
The Handmade Hero code triggers a lot of warnings (primarily variable shadowing) in VS2015. These …
I learned of a neat macro trick today, maybe old hat to most of you but maybe not "#" is a "string…
I know the author is working on a GCC compatible solution now, I think he had an approach that wou…
This is relevant not only for HTML tags, but also for C++ code. If I want to type in some sentence…
The way you detect instruction set at runtime won't work with GCC/clang. For example, if you want …
Never mind, I found the missing feature thread right after posting this. lols
Maybe I just can't find it, but I like searching for posts before asking a question.
Casey, I wish you could have something like this a little closer to the middle of the year instead…
Thought some of you may find this handy. I worked with the author of this a bit, my own SIMD nois…
Since we build as a single translation unit, there is actually no need for include guards in Handm…
Thanks! Didn't know that was where the information about it was.
When is HandmadeCon 2016?
How are you #include'ing the header file? Be sure to use the quotes to specify that the file is …
I'm having an issue were when I create a new file and put it in the same directory as the others i…
Yep, cleared it up. Thanks Bryan and Casey!