![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_NEQ opcode for inequality comparison in the VM. More...
Go to the source code of this file.
Functions | |
| if (a.type==b.type) | |
| free_value (a) | |
| free_value (b) | |
Variables | |
| case | OP_NEQ |
| Value | a = pop_value(vm) |
| int | neq = 1 |
| else | |
| break | |
Implements the OP_NEQ opcode for inequality comparison in the VM.
This file is part of the Fun programming language. https://fun-lang.xyz/
Copyright 2025 Johannes Findeisen you@h.nosp@m.anez.nosp@m..org Licensed under the terms of the Apache-2.0 license. https://opensource.org/license/apache-2-0
This file handles the OP_NEQ instruction, which checks if two values are not equal. The values are popped from the stack, and the result (1 or 0) is pushed back.
Behavior:
Error Handling:
Example: // Bytecode: OP_NEQ // Stack before: [42, 10] // Stack after: [1]
Definition in file neq.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |