diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-03-06 11:16:06 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-03-06 11:16:06 +0100 |
commit | e2b0fa9ef05ff15dba4f7051e8eede3a27b80589 (patch) | |
tree | b738446124f93dd0d5b0182b46396dc59cc266b9 /doc/gnulib.texi | |
parent | 5e4c2e5a362d7af98182b54a1295cffad08bbf7d (diff) | |
download | gnulib-e2b0fa9ef05ff15dba4f7051e8eede3a27b80589.tar.gz |
Minor cleanups of __func__ module, suggested by Eric Blake <ebb9@byu.net>.
Diffstat (limited to 'doc/gnulib.texi')
-rw-r--r-- | doc/gnulib.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/gnulib.texi b/doc/gnulib.texi index 31f51df92d..8de6d8ee59 100644 --- a/doc/gnulib.texi +++ b/doc/gnulib.texi @@ -5829,15 +5829,19 @@ generated automatically. @node __func__ @section __func__ -The @code{__func__} module makes sure that you can use the -@code{__func__} variable as defined by C99 in your code. +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> -... -printf ("%s: something happened\n", __func__); +#include <stdio.h> /* for printf */ + +int main (void) +@{ + printf ("%s: hello world\n", __func__); +@} @end smallexample @node GNU Free Documentation License |