| 2014 | } |
| 2015 | |
| 2016 | int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) |
| 2017 | { |
| 2018 | // Signedness doesn't matter when pushing integer arguments |
| 2019 | if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) |
| 2020 | return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); |
| 2021 | if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) |
| 2022 | return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); |
| 2023 | if (data_type == ImGuiDataType_Float) |
| 2024 | return ImFormatString(buf, buf_size, format, *(const float*)p_data); |
| 2025 | if (data_type == ImGuiDataType_Double) |
| 2026 | return ImFormatString(buf, buf_size, format, *(const double*)p_data); |
| 2027 | if (data_type == ImGuiDataType_S8) |
| 2028 | return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); |
| 2029 | if (data_type == ImGuiDataType_U8) |
| 2030 | return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); |
| 2031 | if (data_type == ImGuiDataType_S16) |
| 2032 | return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); |
| 2033 | if (data_type == ImGuiDataType_U16) |
| 2034 | return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); |
| 2035 | IM_ASSERT(0); |
| 2036 | return 0; |
| 2037 | } |
| 2038 | |
| 2039 | void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) |
| 2040 | { |
nothing calls this directly
no test coverage detected