![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_ECHO opcode for printing without a trailing newline. More...
Go to the source code of this file.
Functions | |
| free_value (v) | |
| if (vm->output_count< OUTPUT_SIZE) | |
| fprintf (stderr, "Runtime error: output buffer overflow\n") | |
| exit (1) | |
Variables | |
| case | OP_ECHO |
| Value | snap = deep_copy_value(&v) |
| else | |
| break | |
Implements the OP_ECHO opcode for printing without a trailing newline.
This snippet is included into the VM dispatch loop and handles OP_ECHO. It pops the top value from the stack and appends it to the VM's output buffer but marks the entry as partial so that subsequent OP_PRINT may continue the same line.
Stack contract:
Definition in file echo.c.
| exit | ( | 1 | ) |
| fprintf | ( | stderr | , |
| "Runtime error: output buffer overflow\n" | ) |
| free_value | ( | v | ) |
| else |
| Value snap = deep_copy_value(&v) |