callfn.go 588 B

12345678910111213141516
  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. //go:build android && (arm || 386 || amd64 || arm64)
  5. // Package callfn provides an android entry point.
  6. //
  7. // It is a separate package from app because it contains Go assembly,
  8. // which does not compile in a package using cgo.
  9. package callfn
  10. // CallFn calls a zero-argument function by its program counter.
  11. // It is only intended for calling main.main. Using it for
  12. // anything else will not end well.
  13. func CallFn(fn uintptr)