It's getting the number of bytes offset from the start of the struct. So in the user code, you can…
da447m —
In the file handmade_generated.h we find My first question here is why casting 0 like that? Is thi…
da447m —
Thx for the reply! No, I'm actually just asking why he named that "legacy". Usually this means som…
da447m —
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.
da447m —
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…
da447m —
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…
da447m —
Is there any video where he explains the naming? I went to vid 599 but didn't find anything.
da447m —
For my previous serialization example, you need type information to actually iterate over members …
da447m —
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 …
Hey Miles, sorry for not really following through with this intent. It ended up not being a high e…
Jai does this with #run: In C# you can do similar things with DynamicMethod/ILGenerator & System.…
da447m —
doing codegen in separate program/script Curious. How does this work? How do you do code generatio…
Advantage compared to what other ways? Advantage over manually writing N similar copies of same fu…
da447m —
it's about what you can do at compile time (similar to C++ template arguments). OK but then you kn…
Why won't you just write a function? That requires using specific types. What if I want "print" fu…
da447m —
Current macro implementation is is pretty poor. Try writing macro that accept arbitrary argument c…
Nothing special, legacy is just the earlier source. For the art, it contains different versions of…
Not sure what this means, what other macros exactly? Things to make compiler build in this or that…
da447m —
When acquiring the game, there's a link to download all the files, source + art, both for current …
da447m —
Thx for the answers! No. That's pretty much opposite what wants. Ok! more sane macro support, Not …