mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-09-10 04:08:17 +00:00
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:
12
test/HandmadeMathDifferentPrefix.cpp
Normal file
12
test/HandmadeMathDifferentPrefix.cpp
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user