Directly find out Dart_PostCObject function pointer, instead of manually letting Dart to call Rust's store_dart_post_cobject?
fzyzcjy opened this issue · comments
Hi thanks for the lib! Looking at https://github.com/dart-lang/sdk/blob/master/runtime/include/dart_api_dl.h , I guess a C++ programmer will simply #include
this header and then use the extern Dart_PostCObject_Type Dart_PostCObject_DL;
directly. So what about removing store_dart_post_cobject
and directly do that?
I can make a PR.
related: dart-lang/sdk#47356
can you explain more? what are you trying to achieve here?