From 843ecd34daee4c7181642ff058cdcb448c34c05b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 3 Dec 2012 10:29:13 +0100 Subject: [PATCH 1/1] Add a note about inline functions in README.coding. --- README.coding | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.20.1