What's the right way to convert VM's Int to unmanaged CInt pointer from scala.scalanative.unsafe?
val num: Int = 5
val nativeInt: Ptr[CInt] = // ?
What's the right way to convert VM's Int to unmanaged CInt pointer from scala.scalanative.unsafe?
val num: Int = 5
val nativeInt: Ptr[CInt] = // ?
This seems to be working for me: