Skip to main content

has_builtin

Function has_builtin 

Source
pub fn has_builtin(name: &str) -> bool
Expand description

Whether __has_builtin(name) answers yes.

The atomic families are builtins too, and are not spelled __builtin_…: __has_builtin(__atomic_load_n) and __has_builtin(__sync_synchronize) are what a program guards those with, and GCC and Clang answer both.