- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 170 for gofunc (0.12 sec)
-
src/runtime/testdata/testwintls/main.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "C" //export GoFunc func GoFunc() int { return 42 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 25 15:37:00 UTC 2023 - 250 bytes - Viewed (0) -
src/cmd/link/testdata/testBuildFortvOS/main.m
extern void GoFunc(); int main(int argc, char **argv) { GoFunc();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 23 15:31:01 UTC 2020 - 70 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/go/shlib.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "C" //export GoFunc func GoFunc() int { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 249 bytes - Viewed (0) -
src/cmd/link/testdata/testBuildFortvOS/lib.go
package main import "C" //export GoFunc func GoFunc() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 23 15:31:01 UTC 2020 - 75 bytes - Viewed (0) -
src/cmd/go/testdata/script/build_gcflags.txt
go build -x -n -buildmode=c-archive -gcflags=all=-shared=false ./override.go stderr '^.*/compile (.* )?-shared (.* )?-shared=false' -- override.go -- package main import "C" //export GoFunc func GoFunc() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 541 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/c.c
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "libtestgo2c2go.h" int CFunc(void) { return (GoFunc() << 8) + 2;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 238 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m2/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // #include "libtestgo2c2go.h" import "C" import ( "fmt" "os" ) func main() { got := C.GoFunc() const want = 1 if got != want { fmt.Printf("got %#x, want %#x\n", got, want) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 374 bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
t.Fatalf("expected 123, but got %d", ec) } } type cbFunc struct { goFunc any } func (f cbFunc) cName(cdecl bool) string { name := "stdcall" if cdecl { name = "cdecl" } t := reflect.TypeOf(f.goFunc) for i := 0; i < t.NumIn(); i++ { name += "_" + t.In(i).Name() } return name } func (f cbFunc) cSrc(w io.Writer, cdecl bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/time/sleep.go
// compare linknamed symbol definitions happier. // //go:linkname newTimer func newTimer(when, period int64, f func(any, uintptr, int64), arg any, cp unsafe.Pointer) *Timer //go:linkname stopTimer func stopTimer(*Timer) bool //go:linkname resetTimer func resetTimer(t *Timer, when, period int64) bool // Note: The runtime knows the layout of struct Timer, since newTimer allocates it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld_test.go
} for unexpected, n := range unexpectedErrors { t.Errorf("unexpected error: %s (x%d)", unexpected, n) } } const carchiveSrcText = ` package main //export GoFunc func GoFunc() { println(42) } func main() { } ` func TestArchiveBuildInvokeWithExec(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0)