![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_RUST_HELLO_ARGS_RETURN opcode (conditional build). More...
Go to the source code of this file.
Functions | |
| free_value (vmsg) | |
| vm_raise_error (vm, "RUST_HELLO_ARGS_RETURN requires FUN_WITH_RUST=ON at build time") | |
| push_value (vm, make_nil()) | |
Variables | |
| case | OP_RUST_HELLO_ARGS_RETURN |
| break | |
Implements the OP_RUST_HELLO_ARGS_RETURN opcode (conditional build).
Demonstrates round-tripping a string value through Rust. Pops a value, converts it to a C string, passes it to Rust, and pushes back the string returned by Rust. If Rust returns NULL or Rust support is disabled, Nil is pushed.
Definition in file hello_args_return.c.
| free_value | ( | vmsg | ) |
| push_value | ( | vm | , |
| make_nil() | ) |
| vm_raise_error | ( | vm | ) |
| break |
Definition at line 66 of file hello_args_return.c.
| case OP_RUST_HELLO_ARGS_RETURN |
OP_RUST_HELLO_ARGS_RETURN: (msg:any) -> string | Nil
Behavior (FUN_WITH_RUST=ON):
Behavior (FUN_WITH_RUST=OFF):
Definition at line 36 of file hello_args_return.c.