[TIP] Creating custom definitions for your C++ Game

Quick tip on how to create custom definitions.

Hope you like it :slight_smile:

what is the difference between this solution and to simply comment/uncomment a #define IS_DEMO_BUILT in project header?

Hi @sivan,

You can add a #define IS_DEMO_BUILT 0 as you said but my solution makes it a global preprocessor so you can even add it in engine source too (if you are using GitHub source) but anyway both solutions gets the job done. :slight_smile:

thanks, now I understand (I don’t mod the engine source).