| 765 | } |
| 766 | |
| 767 | void shutdown() |
| 768 | { |
| 769 | #if CROWN_DEBUG |
| 770 | // Destroy all graphs |
| 771 | ListNode *cur; |
| 772 | ListNode *tmp; |
| 773 | list_for_each_safe(cur, tmp, &_graphs) |
| 774 | { |
| 775 | Graph *graph = (Graph *)container_of(cur, Graph, _node); |
| 776 | CE_DELETE(default_allocator(), graph); |
| 777 | } |
| 778 | |
| 779 | CE_DELETE(*_allocator, _lines); |
| 780 | _lines = NULL; |
| 781 | _allocator = NULL; |
| 782 | #else |
| 783 | CE_NOOP(); |
| 784 | #endif |
| 785 | } |
| 786 | |
| 787 | void draw_all(u16 window_width, u16 window_height) |
| 788 | { |
no outgoing calls
no test coverage detected