Fun
0.41.5
The programming language that makes you have fun!
Main Page
Data Structures
Files
File List
Globals
Loading...
Searching...
No Matches
src
vm
core
halt.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
10
/**
11
* @file halt.c
12
* @brief Implements the OP_HALT opcode for stopping VM execution.
13
*
14
* This file handles the OP_HALT instruction, which stops the execution of the VM.
15
* No stack operations are performed.
16
*
17
* Behavior:
18
* - Stops the VM execution immediately.
19
*
20
* Example:
21
* - Bytecode: OP_HALT
22
* - Stack before: [42]
23
* - Stack after: [42]
24
*/
25
26
case
OP_HALT
:
27
return
;
OP_HALT
@ OP_HALT
Definition
bytecode.h:65
Generated on
for Fun by
1.16.1