view doc/func.texi @ 40149:e1f68c6256cf

vma-iter: Add support for Android. * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well. * lib/vma-iter.c: Treat Android like Linux. * lib/get-rusage-data.c (get_rusage_data): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 04:57:29 +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.