mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: fix a mutable var on windows
This commit is contained in:
parent
632e27a4a9
commit
d2675b89c0
@ -164,7 +164,7 @@ pub:
|
||||
// status_ constants
|
||||
code u32
|
||||
flags u32
|
||||
|
||||
|
||||
record &ExceptionRecord
|
||||
address voidptr
|
||||
param_count u32
|
||||
@ -191,7 +191,7 @@ fn add_vectored_exception_handler(handler VectoredExceptionHandler) {
|
||||
[windows_stdcall]
|
||||
fn unhandled_exception_handler(e &ExceptionPointers) u32 {
|
||||
match e.exception_record.code {
|
||||
// These are 'used' by the backtrace printer
|
||||
// These are 'used' by the backtrace printer
|
||||
// so we dont want to catch them...
|
||||
0x4001000A, 0x40010006 {
|
||||
return 0
|
||||
@ -215,7 +215,7 @@ fn C.__debugbreak()
|
||||
fn break_if_debugger_attached() {
|
||||
$if tinyc {
|
||||
unsafe {
|
||||
ptr := &voidptr(0)
|
||||
mut ptr := &voidptr(0)
|
||||
*ptr = 0
|
||||
}
|
||||
} $else {
|
||||
|
Loading…
Reference in New Issue
Block a user