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
2
2
3
3
import metacall .util ._
4
4
import com .sun .jna ._
5
- <<<<<<< HEAD
6
5
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.
10
6
11
7
/** Create a [[Ptr ]] to MetaCall value of type [[A ]] */
12
8
trait Create [A ] {
@@ -65,14 +61,10 @@ object Ptr {
65
61
Create [FunctionPointer ].create {
66
62
new FunctionPointer {
67
63
def callback (argc : SizeT , args : Pointer , data : Pointer ): Pointer = {
68
- <<<<<<< HEAD
69
64
val argsList = args
70
65
.getPointerArray(0 , argc.intValue())
71
66
.map(ptr => Ptr .toValue(Ptr .fromPrimitiveUnsafe(ptr)))
72
67
.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.
76
68
77
69
Ptr .fromValueUnsafe(fn(argsList)).ptr
78
70
}
You can’t perform that action at this time.
0 commit comments