a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

commit eb3fd8f207af2b4fcad6b1e019f4b0d1d069110f
parent 40060121e2870bb6ae588c4c69dca69cc2621021
Author: amin <dev@aminmesbah.com>
Date:   Tue, 21 May 2019 23:16:15 +0000

Define static_assert if we need to

On Windows, assert.h doesn't do this for us.

FossilOrigin-Name: a4cd70e9798a1919a39067bface1c2162954defedf72542613f7ba35732b92f9
Diffstat:
Msrc/game.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/game.h b/src/game.h @@ -1,4 +1,11 @@ #include <assert.h> + +// NOTE(amin): On windows, even with clang and -std=c11, assert.h doesn't +// define static_assert. +#ifndef static_assert +#define static_assert _Static_assert +#endif + #include <limits.h> #include <math.h> #include <stdalign.h>