I am getting started with C and mruby. I have a program that calls to a Ruby function using the mruby mrb_load_string
function. I want to pass the argument from the C function to the Ruby function. How can I achieve this?
void on_key(const char *key) {
mrb_load_string(mrb, "input_received()"); // how do I pass key as an argument?
}