normal mode, command mode
This commit is contained in:
parent
d41e801aeb
commit
ecc8a1df95
10 changed files with 133 additions and 14 deletions
|
|
@ -63,6 +63,12 @@
|
|||
static inline type name##_get(struct name *arr, size_t index) { \
|
||||
assert(index < arr->count); \
|
||||
return arr->data[index]; \
|
||||
} \
|
||||
\
|
||||
static inline void name##_set(struct name *arr, type new_val, \
|
||||
size_t index) { \
|
||||
assert(index < arr->count); \
|
||||
arr->data[index] = new_val; \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue