add check for double fmt_term()

This commit is contained in:
r4 2022-08-22 22:52:58 -04:00
parent 28642854f5
commit 765ff54fe6
1 changed files with 4 additions and 0 deletions

View File

@ -576,5 +576,9 @@ void fmt_init() {
}
void fmt_term() {
if (!initialized) {
ERROR_ASSERT(ERROR_STRING("fmt: fmt_term() called while fmt uninitialized"));
}
initialized = false;
_print_func_map_term(_print_funcs);
}