this is a stepping stone to going to a full Makefile build system. All
src files can be provided in the make and sent to build.py with minimal
issues now that we don't have to build a comma separated list.
nuklear.h has been converted to C89 style comment blocks instead of the
amalgamation it was before (presummably a relic of the other
documentation system).
examples compile. more testing is required.
HEADER is the intro API section of the paq'd files, which is the most
critical part of our documentation. Ideally, this file needs to stay the
same style because it needs to be incorporated into the header file;
however, we can make a minor modification to allow doxygen to render it.
with this commit, I change the name to HEADER.c to allow doxygen
processing. This shouldn't have any affect on the generated paq file.
Eventually, I would like to move this HEADER file into a different name
and the overall mainpage of the documentation.
the difference isnt staggering by any means. the original comment blocks
had most everything we needed. More work is required and there are still
questions to be had about how much information / styling is desired to
be retained in the code comments, verses removing some styling because
doxygen handles that conversion into html with styling automatically.
Fixes the following error with Emscripten, where `__builtin_offset` isn't available. This disables the usage of it when on Emscripten.
```
nuklear.h:8978:38: error: defining a type within '__builtin_offsetof' is a C23 extension [-Werror,-Wc23-extensions]
8978 | NK_STORAGE const nk_size align = NK_ALIGNOF(struct nk_command);
```
The original code was distinctly unclear. I've tried to keep to the
surrounding code style while making the code flow more comprehensible.
I've not looked elsewhere for any other similar occurrences; this became
apparent while investigating a specific line of thought.