1 // 2 // Copyright (c) 2010-2022 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 8 namespace Antmicro.Renode.Utilities.Binding 9 { 10 // This interface should be implemented by classes that export methods that can throw exceptions 11 // using NativeBinder. If it is not implemented, an exception being thrown by an export will 12 // cause the process to exit. For an example implementation, see tlib's unwind.h and tlib_unwind 13 // (the C# implementation will usually consist of just a call to a native function.) 14 public interface INativeUnwindable 15 { NativeUnwind()16 void NativeUnwind(); 17 } 18 } 19