Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MODEL_NAME hand_pose
- #define MODEL_VERSION 112_39
- // Macro for adding quotes
- #define STRINGIFY(X) STRINGIFY2(X)
- #define STRINGIFY2(X) #X
- // Macros for concatenating tokens
- #define CAT(X,Y) CAT2(X,Y)
- #define CAT2(X,Y) X##Y
- #define CAT_2 CAT
- #define CAT_3(X,Y,Z) CAT(CAT(X,Y),Z)
- #define CAT_4(A,X,Y,Z) CAT(A,CAT_3(X,Y,Z))
- #define INCLUDE_ID_FILE(NAME,VERSION) STRINGIFY( CAT_3(NAME, _, CAT(VERSION, .id.h)) )
- #define INCLUDE_MEM_FILE(NAME,VERSION) STRINGIFY( CAT_3(NAME, _, CAT(VERSION, .mem.h)) )
- #include INCLUDE_ID_FILE(MODEL_NAME, MODEL_VERSION)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement