mirror of
https://github.com/vlang/v.git
synced 2025-09-11 00:20:26 -04:00
builtin: fix a mutable var on windows
This commit is contained in:
parent
632e27a4a9
commit
d2675b89c0
@ -164,7 +164,7 @@ pub:
|
|||||||
// status_ constants
|
// status_ constants
|
||||||
code u32
|
code u32
|
||||||
flags u32
|
flags u32
|
||||||
|
|
||||||
record &ExceptionRecord
|
record &ExceptionRecord
|
||||||
address voidptr
|
address voidptr
|
||||||
param_count u32
|
param_count u32
|
||||||
@ -191,7 +191,7 @@ fn add_vectored_exception_handler(handler VectoredExceptionHandler) {
|
|||||||
[windows_stdcall]
|
[windows_stdcall]
|
||||||
fn unhandled_exception_handler(e &ExceptionPointers) u32 {
|
fn unhandled_exception_handler(e &ExceptionPointers) u32 {
|
||||||
match e.exception_record.code {
|
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...
|
// so we dont want to catch them...
|
||||||
0x4001000A, 0x40010006 {
|
0x4001000A, 0x40010006 {
|
||||||
return 0
|
return 0
|
||||||
@ -215,7 +215,7 @@ fn C.__debugbreak()
|
|||||||
fn break_if_debugger_attached() {
|
fn break_if_debugger_attached() {
|
||||||
$if tinyc {
|
$if tinyc {
|
||||||
unsafe {
|
unsafe {
|
||||||
ptr := &voidptr(0)
|
mut ptr := &voidptr(0)
|
||||||
*ptr = 0
|
*ptr = 0
|
||||||
}
|
}
|
||||||
} $else {
|
} $else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user