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

14 lines
284 B
V
Raw Permalink Normal View History

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
}