diff options
author | Phil Jones <philj56@gmail.com> | 2021-10-29 13:23:44 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-10-29 13:23:44 +0100 |
commit | c691b8e48c572e2d5f1c7c16c8f42babd7d706d5 (patch) | |
tree | b3d601919670c41e0409477e22371ab77e092aa2 /src/nelem.h | |
parent | 3bf156c9d9598acbee38c49d17cdb7d77e79d520 (diff) |
Basic text entry working.
Diffstat (limited to 'src/nelem.h')
-rw-r--r-- | src/nelem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nelem.h b/src/nelem.h new file mode 100644 index 0000000..61bf6ce --- /dev/null +++ b/src/nelem.h @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2021 Philip Jones + * + * Licensed under the MIT License. + * See either the LICENSE file, or: + * + * https://opensource.org/licenses/MIT + * + */ + +#ifndef N_ELEM +#define N_ELEM(x) (sizeof(x) / sizeof(*(x))) +#endif |