LastError.h 467 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. namespace il2cpp
  5. {
  6. namespace vm
  7. {
  8. class LIBIL2CPP_CODEGEN_API LastError
  9. {
  10. public:
  11. static uint32_t GetLastError();
  12. static void SetLastError(uint32_t error);
  13. static void StoreLastError();
  14. static void InitializeLastErrorThreadStatic();
  15. private:
  16. static int32_t s_LastErrorThreadLocalStorageOffset;
  17. };
  18. } /* namespace vm */
  19. } /* namespace il2cpp */