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.
Dominik Madarász
You need to wrap the code inside of extern "C" scope: extern "C" { struct HINSTANCE__ { int unuse…
»
PassiveCoder
I rather like this idea, the last time I checked the pre-processor output the windows guff made me…
»
Dominik Madarász
Thanks, I'll look into that one. It's nice to have this topic, always stuff to learn.
»
PassiveCoder
Hi everyone :) I'm a long time follower, first time poster, that just want to say a big to Casey …
»
Jack Mott
I like the SCALL! That could come in handy. I just stumbled on another reflection-ish trick with e…
»
Dominik Madarász
Honestly I'm a big fan of macros, sometimes I even unnecessarily overuse them. I either use it to …
»
Benjamin Pedersen
The Handmade Hero code triggers a lot of warnings (primarily variable shadowing) in VS2015. These …
»
Jack Mott
I learned of a neat macro trick today, maybe old hat to most of you but maybe not "#" is a "string…
»
Jack Mott
I know the author is working on a GCC compatible solution now, I think he had an approach that wou…
»
Mārtiņš Možeiko
This is relevant not only for HTML tags, but also for C++ code. If I want to type in some sentence…
»
Mārtiņš Možeiko
The way you detect instruction set at runtime won't work with GCC/clang. For example, if you want …
»
Timothy Wright
Never mind, I found the missing feature thread right after posting this. lols
»
Timothy Wright
Maybe I just can't find it, but I like searching for posts before asking a question.
»
Timothy Wright
Casey, I wish you could have something like this a little closer to the middle of the year instead…
»
Jack Mott
Thought some of you may find this handy. I worked with the author of this a bit, my own SIMD nois…
»
Casey Muratori
Since we build as a single translation unit, there is actually no need for include guards in Handm…
»
»
Jordan Duval
Thanks! Didn't know that was where the information about it was.
»
»
ratchetfreak
Nov 19-20
»
Jordan Duval
When is HandmadeCon 2016?
»
Jordan Duval
How are you #include'ing the header file? Be sure to use the quotes to specify that the file is …
»
CJ Nelson
I'm having an issue were when I create a new file and put it in the same directory as the others i…
»
Jordan Duval
Yep, cleared it up. Thanks Bryan and Casey!
»
xcodedave
I eventually got it down to 4 bytes per vertex, so 12 bytes per triangle, quite a big improvement…
»
Casey Muratori
What Bryan said :) To elaborate a little further, this is part of a larger a endemic problem to C …
»
xcodedave
Currently, my VBO format works out to 100 bytes per face, so I can definitely see room for optimi…
»
Bryan Taylor
Thanks for the reply. That makes total sense and clears up my confusion. If you don't mind expan…
»
Ginger Bill
C has its arrays as row-major. This means that int array[17][9]; means that there are 17 rows and …
»
soul-burn
What did Casey mean ? I think this has been explained before, but can't remember in which episode(…
»