scala-native / scala-native-bindgen

Scala Native Binding Generator

Home Page:https://scala-native.github.io/scala-native-bindgen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Align scala-native-bindgen with Scala Native 0.4.x API

david-bouyssie opened this issue · comments

Please do the following substitutions (maybe not exhaustive) to match the 0.4.x API:

  • import scala.scalanative._ ; import scala.scalanative.native._ -> import scala.scalanative.unsafe._ ;
    import scala.scalanative.unsigned._
  • CFunctionPtr ->CFuncPtr
  • !p._x -> p.x

Additionally, "native.xxx" could be shorten to "xxx".

@david-bouyssie I have gotten quite far but could use some extra eyes as well. #195

Amazing, thanks ❤️

I can't test now but I'm very excited about this improvement.