add check for double fmt_term()
This commit is contained in:
parent
28642854f5
commit
765ff54fe6
@ -576,5 +576,9 @@ void fmt_init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void fmt_term() {
|
void fmt_term() {
|
||||||
|
if (!initialized) {
|
||||||
|
ERROR_ASSERT(ERROR_STRING("fmt: fmt_term() called while fmt uninitialized"));
|
||||||
|
}
|
||||||
|
initialized = false;
|
||||||
_print_func_map_term(_print_funcs);
|
_print_func_map_term(_print_funcs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user