1 // =================================
 2 // Copyright (c) 2022 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 namespace System
 7 {
 8     public const int debugSystemError = 1 << 0;
 9     public const int debugTerminal = 1 << 1;
10     public const int debugMsgQ = 1 << 2;
11     public const int debugShell = 1 << 3;
12     public const int debugApp = 1 << 4;
13     
14     public nothrow int GetDebugMode()
15     {
16         return get_debug_mode();
17     }
18     
19     public nothrow void SetDebugMode(int debugMode)
20     {
21         set_debug_mode(debugMode);
22     }
23     
24     public nothrow void WriteDebugMessage(const string& message)
25     {
26         write_debug_message(message.Chars());
27     }
28 }