![]() |
dsekai
World engine for retrocomputers.
|

Macros | |
| #define | LIST_ERROR_MAX -100 |
| #define | dio_list_append(node, list, list_sz, list_max, list_type) |
| Append a copy of the given node to the end of a static list. | |
| #define | dio_list_remove(idx, list, list_sz, list_type) |
| Remove an item from a static list and move the other items up, then shrink the list. | |
| #define dio_list_append | ( | node, | |
| list, | |||
| list_sz, | |||
| list_max, | |||
| list_type ) |
Append a copy of the given node to the end of a static list.
| node | Locked MEMORY_PTR to a node to copy to the end of the list. |
| list | Locked MEMORY_PTR to the list to manipulate. |
| list_sz | Number of active items in the list. |
| list_max | Maximum number of active items the list can hold. |
| list_type | Type of items in the list. |
| #define dio_list_remove | ( | idx, | |
| list, | |||
| list_sz, | |||
| list_type ) |
Remove an item from a static list and move the other items up, then shrink the list.
| idx | Index of the item to remove. |
| list | Locked MEMORY_PTR to the list to manipulate. |
| list_sz | Number of active items in the list. |
| list_type | Type of items in the list. |