Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a note about inline functions in README.coding.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 3 Dec 2012 09:29:13 +0000 (10:29 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 3 Dec 2012 10:24:03 +0000 (11:24 +0100)
README.coding

index 22b9aea..803cfbf 100644 (file)
@@ -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