mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 05:25:34 +00:00
c0b574a686
* mapdllnames.pl : a little whitespace action * api/*-api.xml : move to win32 dllnames * */makefile.win32 : remove the mapdllnames step * */*.cs : move to win32 dllnames * */*.custom : move to win32 dllnames * sources/gtk-sharp.sources : move to win32 dllnames svn path=/trunk/gtk-sharp/; revision=11823
38 lines
687 B
C#
38 lines
687 B
C#
// GException.cs : GError handling
|
|
//
|
|
// Authors: Rachel Hestilow <hestilow@ximian.com>
|
|
//
|
|
// (c) 2002 Rachel Hestilow
|
|
|
|
namespace GLib {
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class GException : Exception
|
|
{
|
|
IntPtr errptr;
|
|
|
|
public GException (IntPtr errptr) : base ()
|
|
{
|
|
this.errptr = errptr;
|
|
}
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern string gtksharp_error_get_message (IntPtr errptr);
|
|
public override string Message {
|
|
get {
|
|
return gtksharp_error_get_message (errptr);
|
|
}
|
|
}
|
|
|
|
[DllImport("libglib-2.0-0.dll")]
|
|
static extern void g_clear_error (ref IntPtr errptr);
|
|
~GException ()
|
|
{
|
|
g_clear_error (ref errptr);
|
|
}
|
|
}
|
|
}
|
|
|