Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
jump_if_false.c
Go to the documentation of this file.
1/*
2 * This file is part of the Fun programming language.
3 * https://fun-lang.xyz/
4 *
5 * Copyright 2025 Johannes Findeisen <you@hanez.org>
6 * Licensed under the terms of the Apache-2.0 license.
7 * https://opensource.org/license/apache-2-0
8 */
9
27
29 Value cond = pop_value(vm);
30 int truthy = value_is_truthy(&cond);
31 free_value(cond);
32 if (!truthy) {
33 f->ip = inst.operand;
34 }
35 break;
36}
@ OP_JUMP_IF_FALSE
Definition bytecode.h:58
int truthy
free_value(cond)
FILE * f
Definition read_file.c:38
Tagged union representing a Fun value.
Definition value.h:68
int value_is_truthy(const Value *v)
Evaluate a Value's truthiness according to Fun language rules.
Definition value.c:610