| 762 | }; |
| 763 | |
| 764 | static ExampleTreeNode* ExampleTree_CreateNode(const char* name, int uid, ExampleTreeNode* parent) |
| 765 | { |
| 766 | ExampleTreeNode* node = IM_NEW(ExampleTreeNode); |
| 767 | snprintf(node->Name, IM_ARRAYSIZE(node->Name), "%s", name); |
| 768 | node->UID = uid; |
| 769 | node->Parent = parent; |
| 770 | node->IndexInParent = parent ? (unsigned short)parent->Childs.Size : 0; |
| 771 | if (parent) |
| 772 | parent->Childs.push_back(node); |
| 773 | return node; |
| 774 | } |
| 775 | |
| 776 | static void ExampleTree_DestroyNode(ExampleTreeNode* node) |
| 777 | { |
no test coverage detected