forked from M-Labs/nac3
1
0
Fork 0

core/irrt: print_value add bool

This commit is contained in:
lyken 2024-07-30 15:52:42 +08:00
parent fb54d5d112
commit 7501a086d0
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@
template <class T>
void print_value(const T& value);
template <>
void print_value(const bool& value) {
printf("%s", value ? "true" : "false");
}
template <>
void print_value(const int8_t& value) {
printf("%d", value);