mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
284 B
V
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
|
|
}
|