Skip to content

Commit beabc5d

Browse files
committed
ImStrv: marked with IM_NODEBUGSTEP.
Reduce cognitive/debug-stepping load.
1 parent 9f115f3 commit beabc5d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

imgui.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,12 @@ struct ImStrv
340340
{
341341
const char* Begin;
342342
const char* End;
343-
ImStrv() { Begin = End = NULL; }
344-
ImStrv(const char* b) { Begin = b; End = b ? b + strlen(b) : NULL; }
345-
ImStrv(const char* b, const char* e){ Begin = b; End = e ? e : b ? b + strlen(b) : NULL; }
346-
inline int length() const { return (int)(End - Begin); }
347-
inline bool empty() const { return Begin == End; } // == "" or == NULL
348-
inline operator bool() const { return Begin != NULL; } // return true when valid ("" is valid, NULL construction is not)
343+
IM_NODEBUGSTEP inline ImStrv() { Begin = End = NULL; }
344+
IM_NODEBUGSTEP inline ImStrv(const char* b) { Begin = b; End = b ? b + strlen(b) : NULL; }
345+
IM_NODEBUGSTEP inline ImStrv(const char* b, const char* e){ Begin = b; End = e ? e : b ? b + strlen(b) : NULL; }
346+
IM_NODEBUGSTEP inline int length() const { return (int)(End - Begin); }
347+
IM_NODEBUGSTEP inline bool empty() const { return Begin == End; } // == "" or == NULL
348+
IM_NODEBUGSTEP inline operator bool() const { return Begin != NULL; } // return true when valid ("" is valid, NULL construction is not)
349349
#ifdef IM_STRV_CLASS_EXTRA
350350
IM_STRV_CLASS_EXTRA // Define additional constructor in imconfig.h to convert your string types (e.g. std::string, std::string_view) to ImStrV.
351351
#endif

0 commit comments

Comments
 (0)