Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for __has_feature (0.35 sec)

  1. src/runtime/cgo/gcc_traceback.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin || linux
    
    #include <stdint.h>
    #include "libcgo.h"
    
    #ifndef __has_feature
    #define __has_feature(x) 0
    #endif
    
    #if __has_feature(memory_sanitizer)
    #include <sanitizer/msan_interface.h>
    #endif
    
    // Call the user's traceback function and then call sigtramp.
    // The runtime signal handler will jump to this code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 20:11:59 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/cgo/libcgo.h

    };
    
    /*
     * TSAN support.  This is only useful when building with
     *   CGO_CFLAGS="-fsanitize=thread" CGO_LDFLAGS="-fsanitize=thread" go install
     */
    #undef CGO_TSAN
    #if defined(__has_feature)
    # if __has_feature(thread_sanitizer)
    #  define CGO_TSAN
    # endif
    #elif defined(__SANITIZE_THREAD__)
    # define CGO_TSAN
    #endif
    
    #ifdef CGO_TSAN
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:50:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top