| 1 | module os |
| 2 | |
| 3 | // this is defined in builtin_windows.c.v in builtin |
| 4 | // fn C.IsDebuggerPresent() bool |
| 5 | |
| 6 | // debugger_present returns a bool indicating if the process is being debugged |
| 7 | @[inline] |
| 8 | pub fn debugger_present() bool { |
| 9 | $if windows { |
| 10 | return C.IsDebuggerPresent() |
| 11 | } |
| 12 | return false |
| 13 | } |
| 14 |