Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
return.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
30
31case OP_RETURN: {
33 if (vm->sp >= 0)
34 retv = pop_value(vm);
35 else
39 break;
40}
@ OP_RETURN
Definition bytecode.h:61
else retv
Definition return.c:36
push_value(vm, retv)
vm_pop_frame(vm)
Tagged union representing a Fun value.
Definition value.h:68
Value make_nil(void)
Construct a nil Value.
Definition value.c:126