Watch
2
0
Fork
You've already forked raylib-cs
0

Test module initializer instead of static constructor

This commit is contained in:
Rgebee 2022-02-15 08:55:01 +00:00
commit f5e3c38887

View file

@ -1,4 +1,5 @@
using System; using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Raylib_cs namespace Raylib_cs
@ -39,7 +40,8 @@ namespace Raylib_cs
/// </summary> /// </summary>
public static unsafe class Logging public static unsafe class Logging
{ {
static Logging() [ModuleInitializer]
internal static void SetDefaultCallback()
{ {
Raylib.SetTraceLogCallback(&LogConsole); Raylib.SetTraceLogCallback(&LogConsole);
} }