Add ability to customize HMM_ prefix (#114)

* Add prefix macro and use it everywhere

* Add lightweight test for prefix

* Add a little doc blurb
This commit is contained in:
Ben Visness
2020-04-06 09:57:10 -05:00
committed by GitHub
parent fe32f081f2
commit 15bef820db
3 changed files with 331 additions and 297 deletions

View File

@@ -0,0 +1,12 @@
#define HMM_PREFIX(name) WOW_##name
#define HANDMADE_MATH_IMPLEMENTATION
#define HANDMADE_MATH_NO_INLINE
#include "../HandmadeMath.h"
int main() {
hmm_vec4 a = WOW_Vec4(1, 2, 3, 4);
hmm_vec4 b = WOW_Vec4(5, 6, 7, 8);
WOW_Add(a, b);
}