libpurple/plugins/mono/api/Debug.cs

Mon, 12 May 2014 21:22:30 +0200

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Mon, 12 May 2014 21:22:30 +0200
branch
release-2.x.y
changeset 36026
ee9d95cb8ee6
parent 15940
53d1e0af8279
child 16238
33bf2fd32108
child 18068
b6554e3c8224
child 20478
46933dc62880
permissions
-rw-r--r--

Fix coverity log_reader issues

using System;
using System.Runtime.CompilerServices;

namespace Purple
{
	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));
		}
	}
}

mercurial