Fix issues with multiple translation units (#20)

This commit is contained in:
Nic Barker 2024-09-20 20:46:48 +12:00 committed by GitHub
parent b2d922c78d
commit 332837befd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 449 additions and 387 deletions

View file

@ -18,9 +18,11 @@ _An example GUI application built with clay_
## Quick Start
1. Download or clone clay.h and include it.
1. Download or clone clay.h and include it after defining `CLAY_IMPLEMENTATION` in one file.
```C
// Must be defined in one file, _before_ #include "clay.h"
#define CLAY_IMPLEMENTATION
#include "clay.h"
```