4 ms·
There's a GCC extension that also allows to mark C/C++ functions as `noreturn` (in C, it's a compiler-specific attribute, not a part of the language, unlike Rus
by dmytrish 9y ago
There's a GCC extension that also allows to mark C/C++ functions as `noreturn` (in C, it's a compiler-specific attribute, not a part of the language, unlike Rust):
void myexit(int c) __attribute__ ((noreturn));
- earenndil 9y agoActually, `noreturn` is a standard part of c[1]. Can just specify as _Noreturn, or include a header that aliases it directly to noreturn. Don't know about c++, but it probably has it as [[noreturn]]? 1: http://en.cppreference.com/w/c/language/_Noreturn http://en.cppreference.com/w/c/language/_Noreturn