| 840 | }; |
| 841 | |
| 842 | static ExampleTreeNode* ExampleTree_CreateNode(const char* name, int uid, ExampleTreeNode* parent) |
| 843 | { |
| 844 | ExampleTreeNode* node = IM_NEW(ExampleTreeNode); |
| 845 | snprintf(node->Name, IM_COUNTOF(node->Name), "%s", name); |
| 846 | node->UID = uid; |
| 847 | node->Parent = parent; |
| 848 | node->IndexInParent = parent ? parent->Childs.Size : 0; |
| 849 | if (parent) |
| 850 | parent->Childs.push_back(node); |
| 851 | return node; |
| 852 | } |
| 853 | |
| 854 | static void ExampleTree_DestroyNode(ExampleTreeNode* node) |
| 855 | { |
no test coverage detected