Split wasm_main for better use as a library.
Brought to you by:
yunwei37
Originally created by: ocfox
Function wasm_main() has argc and argv as arguments.
It may not be convenient to use, is it better to separate the parameter resolution into another function?
Such as wasm_main(current_config.program_data_buffer, 0, NULL);, this seems like an odd approach.
Originally posted by: yunwei37
Thanks! May be You could provide more examples about the API design?
Note that the wasm-bpf runtime library mainly works as an example of how to build the runtime, so please don't make it too complex.
Originally posted by: ocfox
Ok, I will try to modify and make a pull request.