GCC/Clang attributes (__attribute__)
Në shqip: Atributet e GCC-së
ShpjegimiSQ
GCC dhe Clang kanë shtesa me __attribute__((...)): packed (pa padding), unused (pa paralajmërim), noreturn (funksioni s'kthehet kurrë), format (kontrollon formatet si printf).
EnglishEN
GCC and Clang have extensions with __attribute__((...)): packed (no padding), unused (no warning), noreturn (the function never returns), format (checks formats like printf).
Si ta mendosh
Si shënimet speciale që i kupton vetëm një shtypshkronjë e caktuar.
Lexoje në anglisht
Like special notes only one particular printer understands.
Shembull kodic
void gabim_fatal(const char *m) __attribute__((noreturn));
void logo(const char *fmt, ...) __attribute__((format(printf, 1, 2)));