Sfoglia il codice sorgente

Added an assertion

ocornut 11 anni fa
parent
commit
23d156908d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end)
     if (window->SkipItems)
         return;
 
+	IM_ASSERT(text != NULL);
     const char* text_begin = text;
     if (text_end == NULL)
         text_end = text + strlen(text);