Skip to content

Commit 98b06bc

Browse files
committed
Merge branch 'develop' of github.com:metacall/core into develop
2 parents 5964dd6 + ded829b commit 98b06bc

File tree

1 file changed

+0
-8
lines changed
  • source/ports/scala_port/src/main/scala

1 file changed

+0
-8
lines changed

source/ports/scala_port/src/main/scala/Ptr.scala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ package metacall
22

33
import metacall.util._
44
import com.sun.jna._
5-
<<<<<<< HEAD
65
import cats.implicits._
7-
=======
8-
import cats._, cats.implicits._, cats.effect._
9-
>>>>>>> Solving some Scala port bugs and trying to implement support for multiple arguments.
106

117
/** Create a [[Ptr]] to MetaCall value of type [[A]] */
128
trait Create[A] {
@@ -65,14 +61,10 @@ object Ptr {
6561
Create[FunctionPointer].create {
6662
new FunctionPointer {
6763
def callback(argc: SizeT, args: Pointer, data: Pointer): Pointer = {
68-
<<<<<<< HEAD
6964
val argsList = args
7065
.getPointerArray(0, argc.intValue())
7166
.map(ptr => Ptr.toValue(Ptr.fromPrimitiveUnsafe(ptr)))
7267
.toList
73-
=======
74-
val argsList = args.getPointerArray(0).map(ptr => Ptr.toValue(Ptr.fromPrimitiveUnsafe(ptr))).toList
75-
>>>>>>> Solving some Scala port bugs and trying to implement support for multiple arguments.
7668

7769
Ptr.fromValueUnsafe(fn(argsList)).ptr
7870
}

0 commit comments

Comments
 (0)