def.hpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // (C) Copyright Tobias Schwinger
  2. //
  3. // Use modification and distribution are subject to the boost Software License,
  4. // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
  5. //------------------------------------------------------------------------------
  6. // no include guards, this file is intended for multiple inclusions
  7. // Type encoding:
  8. //
  9. // bit 0: callable builtin
  10. // bit 1: non member
  11. // bit 2: naked function
  12. // bit 3: pointer
  13. // bit 4: reference
  14. // bit 5: member pointer
  15. // bit 6: member function pointer
  16. // bit 7: member object pointer
  17. #define BOOST_FT_type_mask 0x000000ff // 1111 1111
  18. #define BOOST_FT_callable_builtin 0x00000001 // 0000 0001
  19. #define BOOST_FT_non_member 0x00000002 // 0000 0010
  20. #define BOOST_FT_function 0x00000007 // 0000 0111
  21. #define BOOST_FT_pointer 0x0000000b // 0000 1011
  22. #define BOOST_FT_reference 0x00000013 // 0001 0011
  23. #define BOOST_FT_non_member_callable_builtin 0x00000003 // 0000 0011
  24. #define BOOST_FT_member_pointer 0x00000020 // 0010 0000
  25. #define BOOST_FT_member_function_pointer 0x00000061 // 0110 0001
  26. #define BOOST_FT_member_object_pointer 0x000000a3 // 1010 0001
  27. #define BOOST_FT_member_object_pointer_flags 0x000002a3
  28. #define BOOST_FT_variadic 0x00000100
  29. #define BOOST_FT_non_variadic 0x00000200
  30. #define BOOST_FT_variadic_mask 0x00000300
  31. #define BOOST_FT_const 0x00000400
  32. #define BOOST_FT_volatile 0x00000800
  33. #define BOOST_FT_default_cc 0x00008000
  34. #define BOOST_FT_cc_mask 0x00ff8000
  35. #define BOOST_FT_kind_mask 0x000000fc
  36. #define BOOST_FT_flags_mask 0x00000fff
  37. #define BOOST_FT_full_mask 0x00ff0fff
  38. #define BOOST_FT_arity_shift 24
  39. #define BOOST_FT_arity_mask 0x7f000000