forked from M-Labs/nac3
core/irrt: print_value add bool
This commit is contained in:
parent
fb54d5d112
commit
7501a086d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user