Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
559 B

  1. #pragma once
  2. #if !defined(__cplusplus)
  3. typedef enum bool { false, true } bool;
  4. #if !defined(CONST_CAST)
  5. #define CONST_CAST(t) (t)
  6. #endif
  7. #define STATIC_CAST(t) (t)
  8. #define REINTERPRET_CAST(t) (t)
  9. #define INT_TO_ENUM_CAST(e) /* nothing */
  10. #define FUNCTION_POINTER_CAST(t) (t)
  11. #else
  12. #if !defined(CONST_CAST)
  13. #define CONST_CAST(t) const_cast<t>
  14. #endif
  15. #define STATIC_CAST(t) static_cast<t>
  16. #define INT_TO_ENUM_CAST(e) static_cast<e>
  17. #define REINTERPRET_CAST(t) reinterpret_cast<t>
  18. #define FUNCTION_POINTER_CAST(t) reinterpret_cast<t>
  19. #endif