mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 10:47:57 +08:00
37 lines
934 B
Go
37 lines
934 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under GNU General Public License v3.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
//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))
|
|
return nullptr
|
|
}
|
|
|
|
var (
|
|
applicationQueueAsyncCallEvent = uintptr(C.doGetApplicationQueueAsyncCallEventAddr())
|
|
)
|