Module <cweb/dev.h> — development vs. production mode
Switches framework-wide behavior (logging, asset reload, aggressive debug aids — implementation-dependent).
Type CwebMode
CWEB_MODE_PROD— production.CWEB_MODE_DEV— development.
Functions
void cweb_set_mode(CwebMode mode)
- Purpose: Sets the global mode early in
main, before server and file cache.
CwebMode cweb_get_mode(void)
- Purpose: Reads the current mode.
Notes
- Which subsystems react is defined in the respective implementations (
dev/mode.c); typical: more logs, reload of templates/assets.