callfn.go (583B)
1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build android 6 // +build arm 386 amd64 arm64 7 8 // Package callfn provides an android entry point. 9 // 10 // It is a separate package from app because it contains Go assembly, 11 // which does not compile in a package using cgo. 12 package callfn 13 14 // CallFn calls a zero-argument function by its program counter. 15 // It is only intended for calling main.main. Using it for 16 // anything else will not end well. 17 func CallFn(fn uintptr)