public void dprintf(string fileName, int lineNb, DebugIds debugId, string message)
 {
     if (isDebugEnabled(debugId))
     {
         DateTime x = DateTime.Now;
         Debug.WriteLine("DPRINTF " + fileName + " " + lineNb + " " + x.ToShortTimeString() + ": " + message);
     }
 }
 public void debugMaskSet(DebugIds debugId)
 {
     mDebugMask[(int)debugId / 8] |= (1 << ((int)debugId & 0x07));
 }
 public bool isDebugEnabled(DebugIds debugId)
 {
     return(((mDebugMask[(int)DebugIds.DEBUG_ALL / 8] & (1 << ((int)DebugIds.DEBUG_ALL & 0x07))) != 0)
            | ((mDebugMask[(int)debugId / 8] & (1 << ((int)debugId & 0x07))) != 0));
 }