From f627215bab022893466788417c6f70d0b496d77b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jaroslavas=20Po=C4=8Depko?= Date: Mon, 29 Aug 2011 10:40:28 +1000 Subject: [PATCH] runtime: go interface to cdecl calbacks cdecl calbacks have been implemented in C/ASM code, just Go function is missing R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4969047 --- src/pkg/runtime/windows/syscall.goc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg/runtime/windows/syscall.goc b/src/pkg/runtime/windows/syscall.goc index 85071e0516..4777a61896 100644 --- a/src/pkg/runtime/windows/syscall.goc +++ b/src/pkg/runtime/windows/syscall.goc @@ -20,6 +20,10 @@ func NewCallback(fn Eface) (code uintptr) { code = (uintptr)runtime·compilecallback(fn, true); } +func NewCallbackCDecl(fn Eface) (code uintptr) { + code = (uintptr)runtime·compilecallback(fn, false); +} + func Syscall(fn uintptr, nargs uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err uintptr) { USED(a2); USED(a3); -- 2.50.0