mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Minor API comments and tweaks, standardize index used in imgui.h. Tables: tweaked TableSetupColumn() assert to use IM_ASSERT_USER_ERROR().
This commit is contained in:
		| @@ -1291,8 +1291,12 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo | ||||
|     ImGuiTable* table = g.CurrentTable; | ||||
|     IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); | ||||
|     IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); | ||||
|     IM_ASSERT(table->DeclColumnsCount >= 0 && table->DeclColumnsCount < table->ColumnsCount && "Called TableSetupColumn() too many times!"); | ||||
|     IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); | ||||
|     if (table->DeclColumnsCount >= table->ColumnsCount) | ||||
|     { | ||||
|         IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; | ||||
|     table->DeclColumnsCount++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user