| 8564 | } |
| 8565 | |
| 8566 | static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, const char* display_format, char* buf, int buf_size) |
| 8567 | { |
| 8568 | if (data_type == ImGuiDataType_Int) |
| 8569 | ImFormatString(buf, buf_size, display_format, *(int*)data_ptr); |
| 8570 | else if (data_type == ImGuiDataType_Float) |
| 8571 | ImFormatString(buf, buf_size, display_format, *(float*)data_ptr); |
| 8572 | } |
| 8573 | |
| 8574 | static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, int decimal_precision, char* buf, int buf_size) |
| 8575 | { |
no test coverage detected