There is no need for that. Padding is taken into account when using offsetof.
the offset of first byte of the member will be same as offset of member from beginning of struct S…
Looks interesting. In the future it would be nice to be able to save format specifier (or more gen…
I wanted to show a new feature in an upcoming version of RemedyBG which allows the presentation of…
I assumed it returned the address of the first byte of the member? That is correct. But because ob…
Jason —
Oh perfect. Seems like it might be a useful thing to support but obviously not essential. Thanks m…
It's getting the number of bytes offset from the start of the struct. So in the user code, you can…
Max —
That make sense. I guess there are some ways to elevate this issue. Having an placeholder asset …
I don't think there is anything special. The name is just there to tell you that if you want only …
Because having it in language would be way easier to use & share. Otherwise you would need to inst…
It is different way of writing offsetof(sim_region, Origin). Casey does not like to depend on comp…
It's getting the number of bytes offset from the start of the struct. So in the user code, you can…
In the file handmade_generated.h we find My first question here is why casting 0 like that? Is thi…
Thx for the reply! No, I'm actually just asking why he named that "legacy". Usually this means som…
Yes, that's correct. It requires exactly that. So basically this is a metalanguage that could have…
Yes, that's correct. It requires exactly that.
Alright Martins, now I'm at day 206 and 207, now I understood why Casey created the tokenizer and …
If you're speaking about how to use the assets to run the game, there should be a readme file in t…
There are also ways to mitigate the issue, like having "required" assets and "optional" assets. Fo…
Max —
Thanks for the response! I was worried that might be the answer haha. The problem doesn't seem to…
or just play through the game with a very large memory allocation and record largest amount of mem…
What I don't get, using your example, is why wouldn't you just want the entire struct memcpy() to …
This is caused by the /JMC compiler option. We could consider supporting this option at some poi…
Hi Martins, if I understood correctly, you want: 1 - compiler unfolds types inside a struct for yo…
Max —
How does one pre-allocate the correct amount of memory for game assets? I have been working my way…
Because you want all that logic be resolved in compile time (thus the codegen) not runtime. Same c…
Is there any video where he explains the naming? I went to vid 599 but didn't find anything.
For my previous serialization example, you need type information to actually iterate over members …
The author of C3 language has some pretty cool ideas for a macro system. Casey had a rant where …
The author of C3 language has some pretty cool ideas for a macro system. Casey had a rant where …