We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34e1592 commit 7839740Copy full SHA for 7839740
sanitizers/sanitizers.cpp
@@ -21,15 +21,16 @@
21
22
std::atomic<char*> globalSanitizerLogPath{nullptr};
23
24
-void initSanitizerPath(const char* path) {
25
- if (auto* const newPath = strdup(path)) {
26
- if (auto* const oldPath = globalSanitizerLogPath.exchange(newPath)) {
27
- free(oldPath);
+extern "C" {
+
+ void initSanitizerPath(const char* path) {
+ if (auto* const newPath = strdup(path)) {
28
+ if (auto* const oldPath = globalSanitizerLogPath.exchange(newPath)) {
29
+ free(oldPath);
30
+ }
31
}
32
-}
33
-extern "C" {
34
__attribute__((used, visibility("default")))
35
// NOLINTNEXTLINE(bugprone-reserved-identifier)
36
const char* __asan_default_options() { return "detect_leaks=1"; }
0 commit comments