You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
607 B
26 lines
607 B
using System; |
|
using System.Diagnostics; |
|
using System.Runtime.InteropServices; |
|
|
|
namespace gaemstone.Utility; |
|
|
|
public class FlecsException |
|
: Exception |
|
{ |
|
public FlecsException() : base() { } |
|
public FlecsException(string message) : base(message) { } |
|
} |
|
|
|
public class FlecsAbortException |
|
: FlecsException |
|
{ |
|
private readonly string _stackTrace = new StackTrace(2, true).ToString(); |
|
public override string? StackTrace => _stackTrace; |
|
|
|
private FlecsAbortException() |
|
: base("Abort was called by flecs") { } |
|
|
|
[UnmanagedCallersOnly] |
|
internal static void Callback() |
|
=> throw new FlecsAbortException(); |
|
}
|
|
|