1
0
Fork 0
forked from fun/fun
fun/src/vm/echo.c

12 lines
281 B
C

/**
* Implements OP_ECHO: print top-of-stack value without trailing newline.
* Does not store into VM output buffer; writes directly to stdout and flushes.
*/
case OP_ECHO: {
Value v = pop_value(vm);
print_value(&v);
fflush(stdout);
free_value(v);
break;
}