Guest User

Untitled

a guest
Jan 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. #ifndef _CONCAT_H_
  2. #define _CONCAT_H_
  3.  
  4. #define _CONCAT(a, b) a##b
  5. #define _CONCAT3(a, b, c) a##b##c
  6. #define _CONCAT4(a, b, c, d) a##b##c##d
  7. #define _CONCAT5(a, b, c, d, e) a##b##c##d##e
  8. #define _CONCAT6(a, b, c, d, e, f) a##b##c##d##e##f
  9. #define _CONCAT7(a, b, c, d, e, f, g) a##b##c##d##e##f##g
  10. #define _CONCAT8(a, b, c, d, e, f, g, h) a##b##c##d##e##f##g##h
  11. #define _CONCAT9(a, b, c, d, e, f, g, h, i) a##b##c##d##e##f##g##h##i
  12. #define _CONCAT10(a, b, c, d, e, f, g, h, i, j) a##b##c##d##e##f##g##h##i##j
  13.  
  14. #define CONCAT(a, b) _CONCAT(a, b)
  15. #define CONCAT3(a, b, c) _CONCAT3(a, b, c)
  16. #define CONCAT4(a, b, c, d) _CONCAT4(a, b, c, d)
  17. #define CONCAT5(a, b, c, d, e) _CONCAT5(a, b, c, d, e)
  18. #define CONCAT6(a, b, c, d, e, f) _CONCAT6(a, b, c, d, e, f)
  19. #define CONCAT7(a, b, c, d, e, f, g) _CONCAT7(a, b, c, d, e, f, g)
  20. #define CONCAT8(a, b, c, d, e, f, g, h) _CONCAT8(a, b, c, d, e, f, g, h)
  21. #define CONCAT9(a, b, c, d, e, f, g, h, i) _CONCAT9(a, b, c, d, e, f, g, h, i)
  22. #define CONCAT10(a, b, c, d, e, f, g, h, i, j) _CONCAT10(a, b, c, d, e, f, g, h, i, j)
  23.  
  24. #endif // _CONCAT_H_
Add Comment
Please, Sign In to add comment