| 2274 | } |
| 2275 | |
| 2276 | int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) |
| 2277 | { |
| 2278 | // Signedness doesn't matter when pushing integer arguments |
| 2279 | if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) |
| 2280 | return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); |
| 2281 | if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) |
| 2282 | return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); |
| 2283 | if (data_type == ImGuiDataType_Float) |
| 2284 | return ImFormatString(buf, buf_size, format, *(const float*)p_data); |
| 2285 | if (data_type == ImGuiDataType_Double) |
| 2286 | return ImFormatString(buf, buf_size, format, *(const double*)p_data); |
| 2287 | if (data_type == ImGuiDataType_S8) |
| 2288 | return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); |
| 2289 | if (data_type == ImGuiDataType_U8) |
| 2290 | return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); |
| 2291 | if (data_type == ImGuiDataType_S16) |
| 2292 | return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); |
| 2293 | if (data_type == ImGuiDataType_U16) |
| 2294 | return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); |
| 2295 | IM_ASSERT(0); |
| 2296 | return 0; |
| 2297 | } |
| 2298 | |
| 2299 | void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) |
| 2300 | { |
nothing calls this directly
no test coverage detected