You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #34142 from NoFr1ends/fix-missing-null-checks-mono
Fix missing null checks in Mono Binding of GD
This commit is contained in:
@@ -93,22 +93,22 @@ namespace Godot
|
|||||||
|
|
||||||
public static void PrintErr(params object[] what)
|
public static void PrintErr(params object[] what)
|
||||||
{
|
{
|
||||||
godot_icall_GD_printerr(Array.ConvertAll(what, x => x.ToString()));
|
godot_icall_GD_printerr(Array.ConvertAll(what, x => x?.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void PrintRaw(params object[] what)
|
public static void PrintRaw(params object[] what)
|
||||||
{
|
{
|
||||||
godot_icall_GD_printraw(Array.ConvertAll(what, x => x.ToString()));
|
godot_icall_GD_printraw(Array.ConvertAll(what, x => x?.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void PrintS(params object[] what)
|
public static void PrintS(params object[] what)
|
||||||
{
|
{
|
||||||
godot_icall_GD_prints(Array.ConvertAll(what, x => x.ToString()));
|
godot_icall_GD_prints(Array.ConvertAll(what, x => x?.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void PrintT(params object[] what)
|
public static void PrintT(params object[] what)
|
||||||
{
|
{
|
||||||
godot_icall_GD_printt(Array.ConvertAll(what, x => x.ToString()));
|
godot_icall_GD_printt(Array.ConvertAll(what, x => x?.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static float Randf()
|
public static float Randf()
|
||||||
|
|||||||
Reference in New Issue
Block a user