Skip to content
Snippets Groups Projects
  • Josh Megnauth's avatar
    96de114b
    Add `stdnoreturn.h` · 96de114b
    Josh Megnauth authored
    This header is more or less the same across libc implementations.
    
    `musl` uses its `_Noreturn` macro to detect which `noreturn`
    should be used: C11 or GCC's extension as a fallback.
    
    `glibc` simply defines `noreturn` as `_Noreturn`.
    
    This implementation is based off of `musl`'s.
    
    `_Noreturn` is deprecated as of C23.
    Verified
    96de114b
    History
    Add `stdnoreturn.h`
    Josh Megnauth authored
    This header is more or less the same across libc implementations.
    
    `musl` uses its `_Noreturn` macro to detect which `noreturn`
    should be used: C11 or GCC's extension as a fallback.
    
    `glibc` simply defines `noreturn` as `_Noreturn`.
    
    This implementation is based off of `musl`'s.
    
    `_Noreturn` is deprecated as of C23.