- newCode.add("static void __SPEC_CLEANUP__() {");
- addAllCodeWithIndent(newCode, construct.code.cleanupCode, "\t");
+ newCode.add("static bool __SPEC_CLEANUP__() {");
+ if (construct.code.cleanupCode.size() > 0) {
+ addAllCodeWithIndent(newCode, construct.code.cleanupCode, "\t");
+ } else {
+ newCode.add("\treturn true;"); // If not specified return true
+ }
+