mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
23 lines
969 B
C#
23 lines
969 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace Robust.Shared.Interop.RobustNative.Opus;
|
|
|
|
/// <summary>Defines the annotation found in a native declaration.</summary>
|
|
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)]
|
|
[Conditional("DEBUG")]
|
|
internal sealed partial class NativeAnnotationAttribute : Attribute
|
|
{
|
|
private readonly string _annotation;
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="NativeAnnotationAttribute" /> class.</summary>
|
|
/// <param name="annotation">The annotation that was used in the native declaration.</param>
|
|
public NativeAnnotationAttribute(string annotation)
|
|
{
|
|
_annotation = annotation;
|
|
}
|
|
|
|
/// <summary>Gets the annotation that was used in the native declaration.</summary>
|
|
public string Annotation => _annotation;
|
|
}
|