mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: remove hardcoded check for function calls for C.stat
, C.sigaction
, etc (#18535)
This commit is contained in:
@ -232,10 +232,10 @@ pub:
|
||||
|
||||
type VectoredExceptionHandler = fn (&ExceptionPointers) int
|
||||
|
||||
fn C.AddVectoredExceptionHandler(int, C.PVECTORED_EXCEPTION_HANDLER)
|
||||
fn C.AddVectoredExceptionHandler(int, voidptr)
|
||||
|
||||
fn add_vectored_exception_handler(handler VectoredExceptionHandler) {
|
||||
C.AddVectoredExceptionHandler(1, C.PVECTORED_EXCEPTION_HANDLER(handler))
|
||||
C.AddVectoredExceptionHandler(1, voidptr(handler))
|
||||
}
|
||||
|
||||
[callconv: stdcall]
|
||||
|
Reference in New Issue
Block a user