sc_types.h 597 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef SC_TYPES_H_
  2. #define SC_TYPES_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdint.h>
  7. #include <stdbool.h>
  8. #define sc_string char*
  9. typedef bool sc_boolean;
  10. typedef int_fast16_t sc_short;
  11. typedef uint_fast16_t sc_ushort;
  12. typedef int32_t sc_integer;
  13. typedef uint32_t sc_uinteger;
  14. typedef double sc_real;
  15. typedef void* sc_eventid;
  16. typedef intptr_t sc_intptr_t;
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #ifndef null
  21. #ifdef __cplusplus
  22. #define null 0
  23. #else
  24. #define null ((void *)0)
  25. #endif
  26. #endif
  27. #define bool_true true
  28. #define bool_false false
  29. #endif /* SC_TYPES_H_ */