builtin: implement generic break_if_debugger_attached()

pull/5196/head
pancake 2020-06-03 14:11:23 +02:00 committed by GitHub
parent 13e09c61ef
commit e9bcd36d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -123,4 +123,8 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
}
fn break_if_debugger_attached() {
unsafe {
ptr := &voidptr(0)
*ptr = 0
}
}