updated tlibc
This commit is contained in:
@@ -27,6 +27,8 @@ A fork of [libtoml](https://github.com/brglng/libtoml) rewritten to use [tlibc](
|
||||
|
||||
5. To build library use tasks `build_static_lib[_dbg]` or `build_shared_lib[_dbg]`
|
||||
|
||||
6. If you use tlibtoml as static library, add `LINKER_LIBS` from tlibtoml `project.config` to your project.
|
||||
|
||||
|
||||
## Usage
|
||||
```c
|
||||
@@ -46,7 +48,7 @@ int main(){
|
||||
// get value by key and ensure it's a string
|
||||
try_fatal(str* s, p, TomlTable_get_str(t, STR("some_key")));
|
||||
// print this string value
|
||||
printf("some_key = '"FMT_str"'\n", str_expand(*s));
|
||||
printf("some_key = '"FMT_str"'\n", str_unwrap(*s));
|
||||
|
||||
Return 0; // call defers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user