Mon, 16 Apr 2007 00:44:33 +0000
merge of 'b98e72d4089afb8a1879e5fe9627cfb132ee88de'
and '606a402fea87c797c4b751475228a6f6a5385122'
| 11660 | 1 | using System; |
| 2 | using System.Runtime.CompilerServices; | |
| 3 | ||
|
15940
53d1e0af8279
Gaim -> Purple rename for the Mono plugin. These changes make sense, and it
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
4 | namespace Purple |
| 11660 | 5 | { |
| 6 | public class Debug | |
| 7 | { | |
| 8 | public static int ALL = 0; | |
| 9 | public static int MISC = 1; | |
| 10 | public static int INFO = 2; | |
| 11 | public static int WARNING = 3; | |
| 12 | public static int ERROR = 4; | |
| 13 | public static int FATAL = 5; | |
| 14 | ||
| 15 | [MethodImplAttribute(MethodImplOptions.InternalCall)] | |
| 16 | extern private static void _debug(int type, string cat, string str); | |
| 17 | ||
| 18 | public static void debug(int type, string cat, string format) | |
| 19 | { | |
| 20 | _debug(type, cat, format); | |
| 21 | } | |
| 22 | ||
| 23 | public static void debug(int type, string cat, string format, params object[] args) | |
| 24 | { | |
| 25 | _debug(type, cat, String.Format(format, args)); | |
| 26 | } | |
| 27 | } | |
| 28 | } |