From: Arnaud Giersch Date: Mon, 3 Dec 2012 09:29:13 +0000 (+0100) Subject: Add a note about inline functions in README.coding. X-Git-Tag: v3_9_rc1~86^2~201 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/843ecd34daee4c7181642ff058cdcb448c34c05b Add a note about inline functions in README.coding. --- diff --git a/README.coding b/README.coding index 22b9aeaec5..803cfbf435 100644 --- a/README.coding +++ b/README.coding @@ -93,7 +93,12 @@ SIZE_T (FIXME: obsolete?) PRINTF pointer difference (FIXME: advertise %td instead?) printf ("diff = %ld\n", (long) (pointer2 - pointer1)); - + +INLINE functions + The definition of a inline function must be visible when it is used. + As such, an inline function should be defined (an not only declared) + in header file (.h) with attributes 'static XBT_INLINE'. It should + not be defined in source file (.c). ** ** Commenting the source: doxygen