2022-10-17 21:38:39 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HybridCLR.Editor.ABI
|
|
|
|
|
{
|
|
|
|
|
public static class ABIUtil
|
|
|
|
|
{
|
|
|
|
|
public static string GetHybridCLRPlatformMacro(PlatformABI abi)
|
|
|
|
|
{
|
|
|
|
|
switch(abi)
|
|
|
|
|
{
|
|
|
|
|
case PlatformABI.Arm64: return "HYBRIDCLR_ABI_ARM_64";
|
|
|
|
|
case PlatformABI.Universal64: return "HYBRIDCLR_ABI_UNIVERSAL_64";
|
|
|
|
|
case PlatformABI.Universal32: return "HYBRIDCLR_ABI_UNIVERSAL_32";
|
2022-10-19 09:54:33 +08:00
|
|
|
|
case PlatformABI.WebGL32: return "HYBRIDCLR_ABI_WEBGL32";
|
2022-10-17 21:38:39 +08:00
|
|
|
|
default: throw new NotSupportedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|