Menu

#6 Split wasm_main for better use as a library.

open
nobody
None
2023-02-09
2023-02-09
Anonymous
No

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.

Discussion

  • Anonymous

    Anonymous - 2023-02-09

    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.

     
  • Anonymous

    Anonymous - 2023-02-09

    Originally posted by: ocfox

    Ok, I will try to modify and make a pull request.

     

Log in to post a comment.

MongoDB Logo MongoDB