diff --git a/makina-compiler/out/artifacts/makina_compiler_jar/makina-compiler.jar b/makina-compiler/out/artifacts/makina_compiler_jar/makina-compiler.jar index ff83130..a9a0646 100644 Binary files a/makina-compiler/out/artifacts/makina_compiler_jar/makina-compiler.jar and b/makina-compiler/out/artifacts/makina_compiler_jar/makina-compiler.jar differ diff --git a/makina-compiler/src/xyz/colinholzman/makina/CodeGenerator.kt b/makina-compiler/src/xyz/colinholzman/makina/CodeGenerator.kt index f097e28..eeec673 100644 --- a/makina-compiler/src/xyz/colinholzman/makina/CodeGenerator.kt +++ b/makina-compiler/src/xyz/colinholzman/makina/CodeGenerator.kt @@ -94,7 +94,7 @@ class CodeGenerator(val machine: Machine, println() for (activeAtomicState in machine.states.filter { it.isAtomic() }) { println("static int ${machine.id}_${activeAtomicState.getFullyQualifiedIdString()}($machineStructName *self, $machineEventName *event) {") - println("\tif (!self || !event) return -1;") + println("\t(void)self; (void)event;") if (!activeAtomicState.final) { val config = activeAtomicState.getStateConfiguration() println("\tswitch (event->id) {")