-
Notifications
You must be signed in to change notification settings - Fork 28.6k
FlutterDesktopEngineCreate takes argument by reference #75465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That should definitely be fixed, the sooner the better to minimize possible breaks (in practice, probably nobody will be broken because the template only uses the wrapper). It's there because for some reason I'm incapable of remembering that references are C++, not C. /cc @cbracken |
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
FlutterDesktopEngineCreate is part of our C API. We were using a C++ reference type instead of a C-compatible pointer type. This is a breaking change to anyone calling this directly; we believe this should affect few people because the Windows template only uses the `FlutterEngine` wrapper in `shell/platform/windows/client_wrapper/include/flutter/flutter_engine.h`. Fixes flutter/flutter#75465
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm not sure how much of a problem this in practice, but I'm bringing this up just in case.
The methods in
flutter_windows.h
are declared as extern "C", butFlutterDesktopEngineCreate
takesengine_properties
by const reference, which is not a C thing.Right now calling it with a pointer (i.e. through FFI or from Rust) works, and I don't suppose it's going to change in future, but it seems like it's relying on unspecified behavior.
The text was updated successfully, but these errors were encountered: