gc_wrapper.h 548 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #if IL2CPP_GC_BOEHM
  4. /* here is the defines we build Boehm with */
  5. #define IGNORE_DYNAMIC_LOADING 1
  6. #define GC_DONT_REGISTER_MAIN_STATIC_DATA 1
  7. #if IL2CPP_HAS_GC_DESCRIPTORS
  8. #define GC_GCJ_SUPPORT 1
  9. #endif
  10. #if IL2CPP_SUPPORT_THREADS
  11. #define GC_THREADS 1
  12. #endif
  13. #include "gc.h"
  14. #include "gc_typed.h"
  15. #include "gc_mark.h"
  16. #include "gc_gcj.h"
  17. #define GC_NO_DESCRIPTOR ((void*)(0 | GC_DS_LENGTH))
  18. #else
  19. #define GC_NO_DESCRIPTOR ((void*)0)
  20. #endif