In the file handmade_generated.h
we find
member_definition MembersOf_sim_region[] = { {MetaMemberFlag_IsPointer, MetaType_world, "World", PointerToU32(&((sim_region *)0)->World)}, {0, MetaType_world_position, "Origin", PointerToU32(&((sim_region *)0)->Origin)}, /// and so on };
My first question here is why casting 0 like that? Is this simply a shortcut to access the member in one line of code? Is is there something else going on?
(like for instance error messages: https://stackoverflow.com/questions/7002719/casting-0-to-void)