1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/os/debugger_windows.c.v
2023-02-21 12:30:35 +02:00

14 lines
284 B
V

module os
// this is defined in builtin_windows.c.v in builtin
// fn C.IsDebuggerPresent() bool
// debugger_present returns a bool indicating if the process is being debugged
[inline]
pub fn debugger_present() bool {
$if windows {
return C.IsDebuggerPresent()
}
return false
}