Commit 47b8ab8 1 parent 6ed67cd commit 47b8ab8 Copy full SHA for 47b8ab8
File tree 11 files changed +33
-0
lines changed
11 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
+ //go:build darwin
6
+ // +build darwin
7
+
5
8
package fakecgo
6
9
7
10
import _ "unsafe"
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
// Package fakecgo implements the Cgo runtime (runtime/cgo) entirely in Go.
5
8
// This allows code that calls into C to function properly when CGO_ENABLED=0.
6
9
//
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
package fakecgo
5
8
6
9
import (
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
package fakecgo
5
8
6
9
//go:nosplit
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
package fakecgo
5
8
6
9
import "unsafe"
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
+ //go:build darwin
6
+ // +build darwin
7
+
5
8
// The runtime package contains an uninitialized definition
6
9
// for runtime·iscgo. Override it to tell the runtime we're here.
7
10
// There are various function pointers that should be set too,
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
package fakecgo
5
8
6
9
type size_t uintptr
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
+ //go:build darwin
6
+ // +build darwin
7
+
5
8
package fakecgo
6
9
7
10
import _ "unsafe" // for go:linkname
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
package fakecgo
5
8
6
9
import "unsafe"
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
/*
5
8
trampoline for emulating required C functions for cgo in go (see cgo.go)
6
9
(we convert cdecl calling convention to go and vice-versa)
Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: Apache-2.0
2
2
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
3
4
+ //go:build darwin
5
+ // +build darwin
6
+
4
7
#include "textflag.h"
5
8
#include "go_asm.h"
6
9
You can’t perform that action at this time.
0 commit comments