LastError.h 417 B

12345678910111213141516171819202122
  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 StoreLastError();
  13. static void InitializeLastErrorThreadStatic();
  14. private:
  15. static int32_t s_LastErrorThreadLocalStorageOffset;
  16. };
  17. } /* namespace vm */
  18. } /* namespace il2cpp */