@ -9639,8 +9639,8 @@ bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags
// [SECTION] ERROR CHECKING
//-----------------------------------------------------------------------------
// Helper function to v erify ABI compatibility between caller code and compiled version of Dear ImGui.
// This is c alled by IMGUI_CHECKVERSION().
// V erify ABI compatibility between caller code and compiled version of Dear ImGui. This helps detects some build issues .
// C alled by IMGUI_CHECKVERSION().
// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit
// If this triggers you have mismatched headers and compiled code versions.
// - It could be because of a build issue (using new headers with old compiled code)
@ -9653,12 +9653,12 @@ bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, si
{
bool error = false ;
if ( strcmp ( version , IMGUI_VERSION ) ! = 0 ) { error = true ; IM_ASSERT ( strcmp ( version , IMGUI_VERSION ) = = 0 & & " Mismatched version string! " ) ; }
if ( sz_io ! = sizeof ( ImGuiIO ) ) { error = true ; IM_ASSERT ( sz_io = = sizeof ( ImGuiIO ) & & " Mismatched struct layout! " ) ; }
if ( sz_io ! = sizeof ( ImGuiIO ) ) { error = true ; IM_ASSERT ( sz_io = = sizeof ( ImGuiIO ) & & " Mismatched struct layout! " ) ; }
if ( sz_style ! = sizeof ( ImGuiStyle ) ) { error = true ; IM_ASSERT ( sz_style = = sizeof ( ImGuiStyle ) & & " Mismatched struct layout! " ) ; }
if ( sz_vec2 ! = sizeof ( ImVec2 ) ) { error = true ; IM_ASSERT ( sz_vec2 = = sizeof ( ImVec2 ) & & " Mismatched struct layout! " ) ; }
if ( sz_vec4 ! = sizeof ( ImVec4 ) ) { error = true ; IM_ASSERT ( sz_vec4 = = sizeof ( ImVec4 ) & & " Mismatched struct layout! " ) ; }
if ( sz_vert ! = sizeof ( ImDrawVert ) ) { error = true ; IM_ASSERT ( sz_vert = = sizeof ( ImDrawVert ) & & " Mismatched struct layout! " ) ; }
if ( sz_idx ! = sizeof ( ImDrawIdx ) ) { error = true ; IM_ASSERT ( sz_idx = = sizeof ( ImDrawIdx ) & & " Mismatched struct layout! " ) ; }
if ( sz_vec2 ! = sizeof ( ImVec2 ) ) { error = true ; IM_ASSERT ( sz_vec2 = = sizeof ( ImVec2 ) & & " Mismatched struct layout! " ) ; }
if ( sz_vec4 ! = sizeof ( ImVec4 ) ) { error = true ; IM_ASSERT ( sz_vec4 = = sizeof ( ImVec4 ) & & " Mismatched struct layout! " ) ; }
if ( sz_vert ! = sizeof ( ImDrawVert ) ) { error = true ; IM_ASSERT ( sz_vert = = sizeof ( ImDrawVert ) & & " Mismatched struct layout! " ) ; }
if ( sz_idx ! = sizeof ( ImDrawIdx ) ) { error = true ; IM_ASSERT ( sz_idx = = sizeof ( ImDrawIdx ) & & " Mismatched struct layout! " ) ; }
return ! error ;
}