view doc/func.texi @ 40246:c34f677e6117 default tip master

_Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before GCC 4.8.
author Akim Demaille <akim.demaille@gmail.com>
date Sun, 17 Mar 2019 19:27:20 +0100
parents 6b25bda86ddb
children
line wrap: on
line source

@node func
@section func

The @code{func} module makes sure that you can use the predefined
identifier @code{__func__} as defined by C99 in your code.

A small example is:

@smallexample
#include <config.h>
#include <stdio.h> /* for printf */

int main (void)
@{
    printf ("%s: hello world\n", __func__);
@}
@end smallexample

Note that @code{sizeof} cannot be applied to @code{__func__}: On SunPRO C
compiler, @code{sizeof __func__} evaluates to 0.