-
Notifications
You must be signed in to change notification settings - Fork 6k
Move constant definitions out embedder.h #8498
Move constant definitions out embedder.h #8498
Conversation
(If for some reason the value absolutely must be in the header, we probably want a |
Or use |
Since the value itself is part of the API "contract", it may make sense to use enum like other This would then make it easy to use the value while only including the embedder.h file. |
Chris will need to weigh in on that; it's not clear to me that it is. |
There's no reason at all for the value itself to be in the header; these should definitely have been declared The value itself must be < 0. The choice of -1 was arbitrary within that constraint. That said, we should preserve that choice in order to ensure compatibility without forcing a recompile of embedders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flutter/engine@905c571...72986c3 git log 905c571..72986c3 --no-merges --oneline 72986c3 Move constant definitions out embedder.h (flutter/engine#8498) e356dbc Merge flutter/synchronization contents into fml. (flutter/engine#8525) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.
Can you add a check so that this sort of thing gets caught at build time? We have an |
PR flutter#8498 made these constants extern, but forgot to export them so they would be public symbols.
PR #8498 made these constants extern, but forgot to export them so they would be public symbols.
Constant values should generally not be defined in headers. As currently written, multiple files including this header will cause link errors as the symbols are redeclared in each file with external linkage.