4/// The library is compiled on its own, so it cannot see a sketch's config.h:
5/// set these with build.extra_flags (chgame build --debug passes
6/// -DCHGAME_DEBUG=1), and read them in the sketch from here.
7#pragma once
8
9/// @defgroup chgame_config Build switches
10/// @ingroup lib_chgame
11/// @brief CHGAME_DEBUG and CHGAME_PROFILE: set them with build.extra_flags.
12///
13/// | Switch | Default | What it turns on |
14/// |---|---|---|
15/// | `CHGAME_DEBUG` | 0 on the board, 1 in the simulator | the serial debug protocol (@ref chgame_debug): screenshots, input injection, lockstep, perf. Always on in the simulator, which is driven through it; off on the board unless asked for (it costs ~2 KB and needs USB Serial). |
16/// | `CHGAME_PROFILE` | 0 | the section profiler (dbg::prof() and the `T` command) |