fe469ae66b154ff61aec603c537f428ae33cff07
[m17n/m17n-lib-cs.git] / M17N.cs
1 using System;
2
3 namespace M17N
4 {
5   public static class M17n
6   {
7     public const int Version = 0x020101;
8
9     public static int MajorVersion { get { return (Version >> 16); } }
10     public static int MinorVersion { get { return ((Version >> 8) & 0xFF); } }
11     public static int ReleaseNumber { get { return (Version & 0xFF); } }
12
13     public static bool debug = false;
14
15     public static void DebugPrint (object arg)
16     {
17       if (debug)
18         Console.Write (arg);
19     }
20
21     public static void DebugPrint (string fmt, object arg)
22     {
23       if (debug)
24         Console.Write (fmt, arg);
25     }
26
27     public static void DebugPrint (string fmt, object arg1, object arg2)
28     {
29       if (debug)
30         Console.Write (fmt, arg1, arg2);
31     }
32
33     public static void DebugPrint (string fmt, object arg1, object arg2, object arg3)
34     {
35       if (debug)
36         Console.Write (fmt, arg1, arg2, arg3);
37     }
38   }
39 }