I've been reading up on Zig and am considering trying it out for my next project. One of the things I've had trouble finding good documentation for is how I would do build configurations. Say I had a game and I wanted to create a demo build where some code from the main game was removed. In C++ I can do
#ifndef DEMO_BUILD
void some_function_that_isnt_in_the_demo()
{
// ...
}
#endif
and then build with a DEMO_BUILD command line argument.
Is there any way to do this for whole blocks or files in Zig?