Skip to content

Commit 54a48b9

Browse files
committed
Update Class EnqueTaskCallback
Fix compilation error after regenerating sources.
1 parent 0db0d82 commit 54a48b9

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

src/main/java/volucris/bindings/box2d/world/EnqueueTaskCallback.java

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,11 @@ public MemorySegment invoke(
5959
int minRange,
6060
MemorySegment taskContext,
6161
MemorySegment userContext
62-
) {
63-
MemorySegment segment = invoke(
64-
TaskCallback.get(task),
65-
itemCount,
66-
minRange,
67-
taskContext,
68-
userContext
69-
);
70-
71-
if (segment.equals(MemorySegment.NULL))
72-
return null;
73-
74-
return segment;
75-
}
76-
77-
public MemorySegment invoke(
78-
TaskCallback task,
79-
int itemCount,
80-
int minRange,
81-
MemorySegment taskContext,
82-
MemorySegment userContext
8362
) {
8463
throw new UnsupportedOperationException(
8564
"Override either the typed or raw callback method in EnqueueTaskCallback."
8665
);
87-
};
88-
66+
}
8967

9068
public MemorySegment memorySegment() {
9169
return segment;

src/main/resources/callbacksConfig/callbacksConfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ callbacks:
2121
- name: b2EnqueueTaskCallback
2222
package-name: volucris.bindings.box2d.world
2323
directory: src/main/java/volucris/bindings/box2d/world
24+
add-typed-method: false
2425
- name: b2FinishTaskCallback
2526
package-name: volucris.bindings.box2d.world
2627
directory: src/main/java/volucris/bindings/box2d/world

0 commit comments

Comments
 (0)