Extract common macros to a header
This commit is contained in:
10
helper_macros.h
Normal file
10
helper_macros.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef HELPER_MACROS_H
|
||||
#define HELPER_MACROS_H
|
||||
|
||||
#define stringify(x) #x
|
||||
#define typename_concat(C, I) vec##C##I##_t
|
||||
#define typename(C, I) typename_concat(C, I)
|
||||
#define funcname_concat(B, C, I) vec_##B##_vec##C##I##_t
|
||||
#define funcname(B, C, I) funcname_concat(B, C, I)
|
||||
|
||||
#endif // !HELPER_MACROS_H
|
||||
Reference in New Issue
Block a user