Skip to content

Commit 3d41267

Browse files
committed
fixed help.jsonc
1 parent a438068 commit 3d41267

File tree

4 files changed

+288
-141
lines changed

4 files changed

+288
-141
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"stackSize": 32,
3-
"memorySize": 256,
3+
"memorySize": 32,
44
"hertz": 0,
55
"locations": [
66
{

main.kar

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
str f1 "Hello!"
2-
call println
3-
lit i8 -
1+
help dealloc

src/main/kotlin/helpers/gatherHelp.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ fun Helpers.gatherHelp(string: String): HelpJsonPartial {
2020
break
2121
}
2222
}
23+
if (usable == null) {
24+
errors.InvalidInstructionArgumentException(string)
25+
}
2326
return usable!!
2427
}

0 commit comments

Comments
 (0)