mirror of
https://gitee.com/energye/energy.git
synced 2024-12-05 21:28:17 +08:00
39 lines
978 B
Go
39 lines
978 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
//go:build !windows
|
|
// +build !windows
|
|
|
|
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))
|
|
return nil
|
|
}
|
|
|
|
var (
|
|
applicationQueueAsyncCallEvent = uintptr(C.doGetApplicationQueueAsyncCallEventAddr())
|
|
)
|