What is CPP? Holy shit... (0.38.4)
This commit is contained in:
parent
d39ef1a58e
commit
d79815e366
10 changed files with 158 additions and 4 deletions
5
src/vm.h
5
src/vm.h
|
|
@ -58,6 +58,8 @@ static const char *opcode_names[] = {
|
|||
"FMIN","FMAX",
|
||||
/* Rust FFI demo */
|
||||
"RUST_HELLO","RUST_HELLO_ARGS","RUST_HELLO_ARGS_RETURN","RUST_GET_SP","RUST_SET_EXIT",
|
||||
/* C++ demo */
|
||||
"CPP_ADD",
|
||||
/* Notcurses TUI (optional) */
|
||||
"NC_INIT","NC_SHUTDOWN","NC_CLEAR","NC_DRAW_TEXT","NC_GETCH"
|
||||
};
|
||||
|
|
@ -165,6 +167,9 @@ char *fun_rust_echo_string(const char *input);
|
|||
/* Free a C string previously returned by fun_rust_echo_string. */
|
||||
void fun_rust_string_free(char *ptr);
|
||||
|
||||
/* C++ demo opcode entry point (C ABI) */
|
||||
int fun_op_cpp_add(struct VM *vm);
|
||||
|
||||
/* --- Extended C ABI for Rust to access VM internals (unsafe) --- */
|
||||
/* Size helpers for Rust side to compute offsets and do pointer math */
|
||||
size_t vm_sizeof(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue