Il2CppGenericContextCompare.cpp 969 B

1234567891011121314151617181920212223
  1. #include "il2cpp-config.h"
  2. #include "il2cpp-class-internals.h"
  3. #include "Il2CppGenericContextCompare.h"
  4. #include "Il2CppGenericInstCompare.h"
  5. namespace il2cpp
  6. {
  7. namespace metadata
  8. {
  9. bool Il2CppGenericContextCompare::operator()(const Il2CppGenericContext* gc1, const Il2CppGenericContext* gc2) const
  10. {
  11. return Compare(gc1, gc2);
  12. }
  13. bool Il2CppGenericContextCompare::Compare(const Il2CppGenericContext* gc1, const Il2CppGenericContext* gc2)
  14. {
  15. bool ret = gc1->class_inst == gc2->class_inst && gc1->method_inst == gc2->method_inst;
  16. IL2CPP_ASSERT(ret == (Il2CppGenericInstCompare::Compare(gc1->class_inst, gc2->class_inst) && Il2CppGenericInstCompare::Compare(gc1->method_inst, gc2->method_inst)));
  17. //return Il2CppGenericInstCompare::Compare(gc1->class_inst, gc2->class_inst) && Il2CppGenericInstCompare::Compare(gc1->method_inst, gc2->method_inst);
  18. return ret;
  19. }
  20. } /* namespace vm */
  21. } /* namespace il2cpp */