Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:metacall/core into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 29, 2021
2 parents 5964dd6 + ded829b commit 98b06bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/ports/scala_port/src/main/scala/Ptr.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ package metacall

import metacall.util._
import com.sun.jna._
<<<<<<< HEAD
import cats.implicits._
=======
import cats._, cats.implicits._, cats.effect._
>>>>>>> Solving some Scala port bugs and trying to implement support for multiple arguments.

/** Create a [[Ptr]] to MetaCall value of type [[A]] */
trait Create[A] {
Expand Down Expand Up @@ -65,14 +61,10 @@ object Ptr {
Create[FunctionPointer].create {
new FunctionPointer {
def callback(argc: SizeT, args: Pointer, data: Pointer): Pointer = {
<<<<<<< HEAD
val argsList = args
.getPointerArray(0, argc.intValue())
.map(ptr => Ptr.toValue(Ptr.fromPrimitiveUnsafe(ptr)))
.toList
=======
val argsList = args.getPointerArray(0).map(ptr => Ptr.toValue(Ptr.fromPrimitiveUnsafe(ptr))).toList
>>>>>>> Solving some Scala port bugs and trying to implement support for multiple arguments.

Ptr.fromValueUnsafe(fn(argsList)).ptr
}
Expand Down

0 comments on commit 98b06bc

Please sign in to comment.