ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321)

For IMGUI_DISABLE_OBSOLETE_FUNCTIONS only.
This commit is contained in:
ocornut
2026-03-25 12:22:53 +01:00
parent 8b818e6e94
commit 8dfda992d1
4 changed files with 13 additions and 9 deletions

View File

@@ -1195,6 +1195,10 @@ IM_MSVC_RUNTIME_CHECKS_OFF
inline IM_FMTLIST(3) bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) { return TreeNodeEx(ImStrv(str_id), flags, fmt, args); }
inline void TreePush(const char* str_id) { TreePush(ImStrv(str_id)); }
IM_MSVC_RUNTIME_CHECKS_RESTORE
// Detect misuses (#9321)
// FIXME-IMSTR: Validate that syntax is ok for our minimum target.
ImVec2 CalcTextSize(ImStrv, const char*, bool hide_text_after_double_hash = false, float wrap_width = -1.0f) = delete;
}
//-----------------------------------------------------------------------------