/src/library/scala/native.scala

http://github.com/greedy/scala-llvm · Scala · 23 lines · 2 code · 4 blank · 17 comment · 0 complexity · d550448193a1be2a9e345ab2152843f3 MD5 · raw file

  1. /* __ *\
  2. ** ________ ___ / / ___ Scala API **
  3. ** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL **
  4. ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
  5. ** /____/\___/_/ |_/____/_/ | | **
  6. ** |/ **
  7. \* */
  8. package scala
  9. /** Marker for native methods.
  10. *
  11. * {{{
  12. * @native def f(x: Int, y: List[Long]): String = ...
  13. * }}}
  14. *
  15. * Method body is not generated if method is marked with `@native`,
  16. * but it is type checked when present.
  17. *
  18. * @since 2.6 */
  19. class native extends annotation.StaticAnnotation {}