mirror of
https://github.com/edg-l/teeconfig.git
synced 2024-11-09 09:38:25 +00:00
13 lines
347 B
Markdown
13 lines
347 B
Markdown
|
# teeconfig
|
||
|
|
||
|
A ddnet / teeworlds configuration parser.
|
||
|
|
||
|
It recognizes the available options by parsing source files with `MACRO_CONFIG_` lines such as `src/engine/shared/config_variables.h`.
|
||
|
|
||
|
|
||
|
```rs
|
||
|
let header_source = include_str!("../config_variables.h");
|
||
|
let vars = parse_config_variables(header_source).unwrap();
|
||
|
assert!(!vars.is_empty())
|
||
|
```
|