Error-c-api.h 407 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <stdint.h>
  3. #if defined(__cplusplus)
  4. #include "os/Error.h"
  5. typedef il2cpp::os::ErrorCode UnityPalErrorCode;
  6. #else
  7. typedef int32_t UnityPalErrorCode;
  8. #endif
  9. #if defined(__cplusplus)
  10. extern "C"
  11. {
  12. #endif
  13. UnityPalErrorCode UnityPalGetLastError();
  14. void UnityPalSetLastError(UnityPalErrorCode code);
  15. int32_t UnityPalSuccess(UnityPalErrorCode code);
  16. #if defined(__cplusplus)
  17. }
  18. #endif