|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include "serene/rt/configuration.h"#include <stdint.h>#include "serene/rt/mm/interface.h"#include "serene/utils.h"Go to the source code of this file.
Functions | |
| void | srn_config_validate (const srn_configuration_t *config) |
| A configuration with every field set to its default. | |
| void srn_config_validate | ( | const srn_configuration_t * | config | ) |
A configuration with every field set to its default.
Use as an initializer: srn_configuration_t cfg = SRN_CONFIG_DEFAULTS;. Panic unless every knob in config is usable. Called by srn_mm_init and srn_engine_make on the configuration they are given, so a bad value fails loudly at startup, naming the knob, instead of corrupting whatever is sized or bounded by it later.
Definition at line 26 of file configuration.c.