1
0
Fork 0
forked from fun/fun

What is CPP? Holy shit... (0.38.4)

This commit is contained in:
Johannes Findeisen 2026-01-29 05:09:15 +01:00
commit d79815e366
10 changed files with 158 additions and 4 deletions

View file

@ -270,6 +270,9 @@ typedef enum {
OP_RUST_GET_SP, // pushes current VM stack pointer (via Rust reading VM memory)
OP_RUST_SET_EXIT, // pops int and sets VM exit_code (via Rust writing VM memory)
// C++ demo opcode(s)
OP_CPP_ADD, // pops b, a; pushes (a + b)
/* Notcurses TUI (optional) */
OP_NC_INIT, // initializes Notcurses; returns 1 on success, 0 on failure
OP_NC_SHUTDOWN, // shuts down Notcurses; returns 0