mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
16 lines
335 B
C#
16 lines
335 B
C#
|
|
using System;
|
||
|
|
using System.Diagnostics;
|
||
|
|
using System.Diagnostics.CodeAnalysis;
|
||
|
|
|
||
|
|
namespace Godot.SourceGenerators
|
||
|
|
{
|
||
|
|
public static class Helper
|
||
|
|
{
|
||
|
|
[Conditional("DEBUG")]
|
||
|
|
public static void ThrowIfNull([NotNull] object? value)
|
||
|
|
{
|
||
|
|
_ = value ?? throw new ArgumentNullException();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|