Skip to content

Commit

Permalink
fix: item type string change from 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Dec 10, 2021
1 parent 22491ca commit afaf60c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions DearPyGui/src/core/AppItems/mvAppItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1542,16 +1542,13 @@ namespace Marvel {
const char*
GetEntityTypeString(mvAppItemType type)
{
#define Y(el) #el
#define X(el) Y(mvAppItemType:: ## el),
#define X(el) "mvAppItemType::" #el,
mv_local_persist const char* entity_type_strings[(size_t)mvAppItemType::ItemTypeCount] =
{
"All, an error occured", // shouldn't actually occur
MV_ITEM_TYPES
};
#undef X
#undef Y

return entity_type_strings[(size_t)type];
}

Expand Down

0 comments on commit afaf60c

Please sign in to comment.