diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-02-12 21:30:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-12 21:30:05 +0000 |
commit | 879bbd7e5191164940285fc257c8d49241a53991 (patch) | |
tree | 3c008f50ec9e3cf7c684f68c60a49f8c8802d58b | |
parent | cf79849224405677e8d3a7bb5f42c420e2f60fc3 (diff) | |
parent | a5ec8fc2a5a28bb7cdf18f4b6dc15b909de5a547 (diff) | |
download | docs-879bbd7e5191164940285fc257c8d49241a53991.tar.gz |
Merge "Update note about `__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__`." into main
-rw-r--r-- | api-guidelines/ndk.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api-guidelines/ndk.md b/api-guidelines/ndk.md index 010e353..4c46609 100644 --- a/api-guidelines/ndk.md +++ b/api-guidelines/ndk.md @@ -577,12 +577,12 @@ from being written in C++ (Jetpack libraries may use C++ in headers). **Inline code cannot use `__builtin_available`.** Using `__builtin_available` instead of `dlopen`/`dlsym` only works if -`__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__` is set. At the time of writing, that -configuration is not supported for apps. There are no plans to ever remove the -current behavior, nor to make `__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__` the -default, as there are tradeoffs involved that must be made by the app developer. -As such, inline code must always work in both configurations, and the only way -to do that is with `dlopen`/`dlsym`. +`__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__` is set. There are no plans to ever +remove the current behavior, nor to make +`__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__` the default, as there are tradeoffs +involved that must be made by the app developer. As such, inline code must +always work in both configurations, and the only way to do that is with +`dlopen`/`dlsym`. ## Error Handling <a name="error-handling"></a> |