Add documentation
This commit is contained in:
@@ -2,6 +2,16 @@
|
||||
#define INC_MMR_CAN_OPTIMIZE_H_
|
||||
|
||||
#ifdef __GNUC__
|
||||
/**
|
||||
* @brief
|
||||
* Tells the compiler that the given method
|
||||
* must always be inlined.
|
||||
*
|
||||
* @example
|
||||
* static always_inline int min(int a, int b) {
|
||||
* return a < b ? a : b;
|
||||
* }
|
||||
*/
|
||||
#define always_inline inline __attribute__((always_inline))
|
||||
#else
|
||||
#define always_inline inline
|
||||
|
||||
Reference in New Issue
Block a user