File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
source/ports/scala_port/src/main/scala Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ package metacall
22
33import metacall .util ._
44import com .sun .jna ._
5- <<<<<<< HEAD
65import 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 ]] */
128trait 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 }
You can’t perform that action at this time.
0 commit comments