1
0
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:
Delyan Angelov
2023-06-24 08:03:12 +03:00
committed by GitHub
parent 2c7643661e
commit 4c9c515f8b
6 changed files with 24 additions and 17 deletions

View File

@ -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]