1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Expose function pointer of MethodInfo

This commit is contained in:
Brian Fiete 2024-11-19 08:23:30 -05:00
parent e7c05068a7
commit 9ca3fbd0dd

View file

@ -63,6 +63,9 @@ namespace System.Reflection
public StringView Name => Compiler.IsComptime ? public StringView Name => Compiler.IsComptime ?
Type.[Friend]Comptime_Method_GetName(mData.mComptimeMethodInstance) : Type.[Friend]Comptime_Method_GetName(mData.mComptimeMethodInstance) :
mData.mMethodData.[Friend]mName; mData.mMethodData.[Friend]mName;
public void* Ptr => Compiler.IsComptime ?
null :
mData.mMethodData.[Friend]mFuncPtr;
public int ParamCount => Compiler.IsComptime ? public int ParamCount => Compiler.IsComptime ?
Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mParamCount : Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mParamCount :