Files
FlaxEngine/Source/Engine/Scripting/Attributes/MonoPInvokeCallbackAttribute.cs
2024-02-26 19:00:48 +01:00

23 lines
638 B
C#

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
using System;
using System.Runtime.InteropServices;
namespace FlaxEngine.Mono
{
/// <summary>
/// Attribute necessary for AOT ports of Mono to mark methods that can be invoked by the native runtime.
/// </summary>
/// <seealso cref="System.Attribute" />
[AttributeUsage(AttributeTargets.Method)]
internal sealed class MonoPInvokeCallbackAttribute : Attribute
{
public MonoPInvokeCallbackAttribute(Type type)
{
}
}
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void VoidDelegate();
}