view plugins/mono/api/Debug.cs @ 14005:d856c2ec93ca

[gaim-migrate @ 16590] (03:00:12) chaosite: SIZE_OF_TIME_T in gtkconv.c:6533 as well (03:08:48) chaosite: rlaager: ping (03:09:22) chaosite: rlaager: svn says that SIZE_OF_TIME_T in log.c:609 is your commit (03:09:31) chaosite: rlaager: it should be SIZEOF_TIME_T committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Jul 2006 12:19:56 +0000
parents a3302d271199
children
line wrap: on
line source

using System;
using System.Runtime.CompilerServices;

namespace Gaim
{
	public class Debug
	{
		public static int ALL = 0;
		public static int MISC = 1;
		public static int INFO = 2;
		public static int WARNING = 3;
		public static int ERROR = 4;
		public static int FATAL = 5;
		
		[MethodImplAttribute(MethodImplOptions.InternalCall)]
		extern private static void _debug(int type, string cat, string str);
		
		public static void debug(int type, string cat, string format)
		{
			_debug(type, cat, format);
		}
		
		public static void debug(int type, string cat, string format, params object[] args)
		{
			_debug(type, cat, String.Format(format, args));
		}
	}
}