Fixed the code style in *.c files to two spaces indentation and add a linter named funstx to Fun. (0.39.0)
This commit is contained in:
parent
33001a7ad2
commit
03b2532474
237 changed files with 17550 additions and 13911 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @file jump_if_false.c
|
||||
* @file jump_if_false.c
|
||||
* @brief Implements the OP_JUMP_IF_FALSE opcode for conditional jumps in the VM.
|
||||
*
|
||||
* This file handles the OP_JUMP_IF_FALSE instruction, which jumps if the top
|
||||
|
|
@ -29,11 +29,11 @@
|
|||
*/
|
||||
|
||||
case OP_JUMP_IF_FALSE: {
|
||||
Value cond = pop_value(vm);
|
||||
int truthy = value_is_truthy(&cond);
|
||||
free_value(cond);
|
||||
if (!truthy) {
|
||||
f->ip = inst.operand;
|
||||
}
|
||||
break;
|
||||
Value cond = pop_value(vm);
|
||||
int truthy = value_is_truthy(&cond);
|
||||
free_value(cond);
|
||||
if (!truthy) {
|
||||
f->ip = inst.operand;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue