-
Notifications
You must be signed in to change notification settings - Fork 533
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
More C++ tweaks and changes #9478
Conversation
cc3f7dd
to
8187508
Compare
8187508
to
14323a1
Compare
88bc1b0
to
614b4aa
Compare
52e7070
to
db9f5f3
Compare
@@ -603,7 +603,7 @@ Debug::enable_soft_breakpoints (void) | |||
void* | |||
xamarin::android::conn_thread (void *arg) | |||
{ | |||
abort_if_invalid_pointer_argument (arg); | |||
abort_if_invalid_pointer_argument (arg, "arg"); |
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.
I wonder how meaningful this will be "without context": the abort messages which may be logged to the Google Play Store (594d090) will only contain the message Parameter 'arg' must be a valid pointer
. Which "arg"?
I think the parameter should also include the method name in the message. so that a "context free" (no adb logcat
) message at least lets us know what function we're talking about:
Parameter 'arg' in function 'conn_thread' must be a valid pointer.
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.
Implemented in the latest commit
In process to remove object instances for a slightly faster startup
db9f5f3
to
d9d80ea
Compare
* main: [native] More C++ tweaks and changes (#9478) Add android-platform-support to .gitignore (#9590) [ci] Skip JDK install if near match is found in $(JI_JAVA_HOME) (#9585) Localized file check-in by OneLocBuild Task: Build definition ID 17928: Build ID 10653360 (#9587) Revert "Try dependabot max_length param (#9529)" Try dependabot max_length param (#9529) LEGO: Pull request (#9575) Bump to DevDiv/android-platform-support@52dd010a (#9553) Localized file check-in by OneLocBuild Task (#9574)
Continued effort to restructure our native C++ runtime, introducing
C++23 features as well as turning as many classes into static ones since
we don't really have objects that need to be created and destroyed during
lifetime of the application:
abort_if*
preprocessor macros with templated functions. Thisgives us better type safety. Instead using variadic arguments, we now
provide overloads which take either a plain string without placeholders
or a lambda function to format the message string on demand.
std::string_view
for literal stringsnoexcept
(this is going to be importantonce exceptions are enabled in the future)