Skip to content

Commit bc1bb93

Browse files
author
Noam Preil
committed
Fix ifndef
1 parent de4bd50 commit bc1bb93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assembler/directives.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,9 @@ int handle_ifndef(struct assembler_state *state, char **argv, int argc) {
10391039
*r = 1;
10401040
}
10411041
}
1042+
if (strcmp(argv[0], "1") == 0) {
1043+
*r = 1;
1044+
}
10421045
*r = !*r;
10431046
stack_push(state->if_stack, r);
10441047
scas_log(L_DEBUG, "IFNDEF directive evaluated to %d", *r);

0 commit comments

Comments
 (0)