| 775 | }; |
| 776 | |
| 777 | static ExampleTreeNode* ExampleTree_CreateNode(const char* name, int uid, ExampleTreeNode* parent) |
| 778 | { |
| 779 | ExampleTreeNode* node = IM_NEW(ExampleTreeNode); |
| 780 | snprintf(node->Name, IM_COUNTOF(node->Name), "%s", name); |
| 781 | node->UID = uid; |
| 782 | node->Parent = parent; |
| 783 | node->IndexInParent = parent ? parent->Childs.Size : 0; |
| 784 | if (parent) |
| 785 | parent->Childs.push_back(node); |
| 786 | return node; |
| 787 | } |
| 788 | |
| 789 | static void ExampleTree_DestroyNode(ExampleTreeNode* node) |
| 790 | { |
no test coverage detected