| 7012 | } |
| 7013 | |
| 7014 | static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, const char* display_format, char* buf, int buf_size) |
| 7015 | { |
| 7016 | if (data_type == ImGuiDataType_Int) |
| 7017 | ImFormatString(buf, buf_size, display_format, *(int*)data_ptr); |
| 7018 | else if (data_type == ImGuiDataType_Float) |
| 7019 | ImFormatString(buf, buf_size, display_format, *(float*)data_ptr); |
| 7020 | } |
| 7021 | |
| 7022 | static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, int decimal_precision, char* buf, int buf_size) |
| 7023 | { |
no test coverage detected