2022-12-07 15:50:59 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2022-12-07 15:50:59 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
//go:build !windows && cgo
|
|
|
|
// +build !windows,cgo
|
|
|
|
|
|
|
|
package cef
|
|
|
|
|
|
|
|
//// #cgo darwin CFLAGS: -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8
|
|
|
|
// #cgo darwin CFLAGS: -mmacosx-version-min=10.8
|
|
|
|
// #cgo darwin LDFLAGS: -mmacosx-version-min=10.8
|
|
|
|
//
|
|
|
|
// extern void* doApplicationQueueAsyncCallEventProc(void* f);
|
|
|
|
// static void* doGetApplicationQueueAsyncCallEventAddr() {
|
|
|
|
// return &doApplicationQueueAsyncCallEventProc;
|
|
|
|
// }
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
//export doApplicationQueueAsyncCallEventProc
|
|
|
|
func doApplicationQueueAsyncCallEventProc(f unsafe.Pointer) unsafe.Pointer {
|
|
|
|
applicationQueueAsyncCallProc(uintptr(f))
|
2023-05-31 17:41:14 +08:00
|
|
|
return nil
|
2022-12-07 15:50:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
applicationQueueAsyncCallEvent = uintptr(C.doGetApplicationQueueAsyncCallEventAddr())
|
|
|
|
)
|