mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
25 lines
657 B
C#
25 lines
657 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Reflection;
|
|
|
|
namespace Cosmos.IL2CPU {
|
|
public static class ExceptionHelper {
|
|
public static Exception CurrentException;
|
|
|
|
public static void ThrowNotImplemented(string aError) {
|
|
Console.WriteLine(aError);
|
|
throw new NotImplementedException(aError);
|
|
}
|
|
}
|
|
|
|
public static class ExceptionHelperRefs
|
|
{
|
|
public static readonly FieldInfo CurrentExceptionRef;
|
|
static ExceptionHelperRefs()
|
|
{
|
|
CurrentExceptionRef = typeof(ExceptionHelper).GetField("CurrentException");
|
|
}
|
|
}
|
|
}
|