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.
Connor
I don't think that this is a problem with the code. The same thing had me confused but when I copi…
»
Banehallow
Hi everyone, I'm current on Day 4 and I ran into an issue. Sorry if I am posting in the wrong foru…
»
Jack Mott
The trick is this is an engine, where users can create their own objects, so there is not a finite…
»
ratchetfreak
i am not sure you understand the point of reinterpret_cast (or the problem this is trying to solv…
»
Caleb
i am not sure you understand the point of reinterpret_cast (or the problem this is trying to solv…
»
ratchetfreak
For rcast you could do something like ((t)((void*)(&(v)))) it only works on lvalues but makes sure…
»
strangezak
Debugging is half of the fun :)
»
Andre
Actually, the rules for things like selecting proper articles or suffixes in English, or any spoke…
»
AM
I found a bug in CTIME, which only hits when you run ctime -stats on a .ctm file on which a single…
»
Caleb
Since clang/gcc like to complain about c style casting at the highest warning levels I have these …
»
AM
Hah, good to know, sorry for the noise. I could not find a search function to see if this was disc…
»
Mārtiņš Možeiko
There is OSX port available here: It's mentioned in comments for gist from Casey:
»
AM
»
AM
Apologies if this has been posted before. I just wanted to share the code for making Casey's CTIME…
»
Simon Anciaux
bytesToWrite is initialized like this so it should not matter.you can check bytesWritten to make …
»
ratchetfreak
To create a new command: // definition COMMAND(do_something) { // code } [/code] If you need to…
»
GreenLightning
I like the function signature macro which I learned from Casey's Working on The Witness blog serie…
»
Timothy Wright
The KISS engine has some fun macros for debugging and testing code (using code from "Learn C the H…
»
Jack Mott
I am working on a , and there are little grammar things that come up all the time, where having so…
»
ratchetfreak
Casey[/quote] It to emit the bounds check because pc can be anything (being passed in through poin…
»
Ginger Bill
Here are some of my favourites: // Static Assertion #define STATIC_ASSERT3(cond, msg) typedef cha…
»
rizoma
you forgot to paste the win32_handmade.h file, so I can't check but.. You should try this: } [/c…
»
rizoma
Ahh the magic of assembly, I will try to look at the disassembly more often! Thanks Mr.Mārtiņš…
»
Mārtiņš Možeiko
I was talking about VS2013 which doesn't understand -Wv:18 argument. It's actually an error, not w…
»
Mārtiņš Možeiko
I have used computed goto for gcc compiler before and it does creates better code. Here's a micro-…
»
Benjamin Pedersen
Maybe, but I tried using -Wv:30, and VS2015 just did what it normally would. I have never done a…
»
Casey Muratori
I am skeptical that these computed gotos are necessary to get the "improved" performance. For exa…
»
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 t…
»
Mārtiņš Možeiko
That's how Casey is using real windows.h - he directly calls W or A functions. No need for macros.
»