mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 03:53:12 -04:00

For golang/go#10743 Change-Id: I374fae9d6e0a7926b26647fe462968df3c0e3298 Reviewed-on: https://go-review.googlesource.com/17679 Reviewed-by: David Crawshaw <crawshaw@golang.org>
18 lines
577 B
Go
18 lines
577 B
Go
// Copyright 2015 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.
|
|
|
|
// +build android
|
|
// +build arm 386 amd64
|
|
|
|
// Package callfn provides an android entry point.
|
|
//
|
|
// It is a separate package from app because it contains Go assembly,
|
|
// which does not compile in a package using cgo.
|
|
package callfn
|
|
|
|
// CallFn calls a zero-argument function by its program counter.
|
|
// It is only intended for calling main.main. Using it for
|
|
// anything else will not end well.
|
|
func CallFn(fn uintptr)
|