mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: fix definition of VectoredExceptionHandler (#6495)
This commit is contained in:
parent
03258db26d
commit
3a869c726b
@ -199,15 +199,15 @@ pub:
|
||||
context_record &ContextRecord
|
||||
}
|
||||
|
||||
type VectoredExceptionHandler = fn(&ExceptionPointers)u32
|
||||
type VectoredExceptionHandler = fn(&ExceptionPointers)int
|
||||
|
||||
fn C.AddVectoredExceptionHandler(u32, C.PVECTORED_EXCEPTION_HANDLER)
|
||||
fn C.AddVectoredExceptionHandler(int, C.PVECTORED_EXCEPTION_HANDLER)
|
||||
fn add_vectored_exception_handler(handler VectoredExceptionHandler) {
|
||||
C.AddVectoredExceptionHandler(1, C.PVECTORED_EXCEPTION_HANDLER(handler))
|
||||
}
|
||||
|
||||
[windows_stdcall]
|
||||
fn unhandled_exception_handler(e &ExceptionPointers) u32 {
|
||||
fn unhandled_exception_handler(e &ExceptionPointers) int {
|
||||
match e.exception_record.code {
|
||||
// These are 'used' by the backtrace printer
|
||||
// so we dont want to catch them...
|
||||
|
Loading…
Reference in New Issue
Block a user