ABIUtil.cs 714 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace HybridCLR.Editor.ABI
  7. {
  8. public static class ABIUtil
  9. {
  10. public static string GetHybridCLRPlatformMacro(PlatformABI abi)
  11. {
  12. switch(abi)
  13. {
  14. case PlatformABI.Arm64: return "HYBRIDCLR_ABI_ARM_64";
  15. case PlatformABI.Universal64: return "HYBRIDCLR_ABI_UNIVERSAL_64";
  16. case PlatformABI.Universal32: return "HYBRIDCLR_ABI_UNIVERSAL_32";
  17. case PlatformABI.WebGL32: return "HYBRIDCLR_ABI_WEBGL32";
  18. default: throw new NotSupportedException();
  19. }
  20. }
  21. }
  22. }