Introduction
Add your content here.
Details
Add your content here. Format your content with:
- Text in bold or italic
- Headings, paragraphs, and lists
- Automatic links to other wiki pages
code snap of JNA (scala)
import com.sun.jna._
object HelloJNA extends Application {
@native def cos(d:Double) : Double
@native def sin(d:Double) : Double
Native.register(if(Platform.isWindows()) "msvcrt" else "m")
println("HelloWorld")
println("cos(0) = "+ cos(0))
println("sin(0) = "+ sin(0))
}