f****s 发帖数: 315 | 1 【 以下文字转载自 JobHunting 讨论区 】
发信人: firecs (火), 信区: JobHunting
标 题: A tech question
发信站: BBS 未名空间站 (Sat Feb 10 20:03:58 2007)
how to force an inline function to be expanded at compile time? (eg in C++) |
g**g 发帖数: 1575 | 2 __attribute__((always_inline))
【在 f****s 的大作中提到】 : 【 以下文字转载自 JobHunting 讨论区 】 : 发信人: firecs (火), 信区: JobHunting : 标 题: A tech question : 发信站: BBS 未名空间站 (Sat Feb 10 20:03:58 2007) : how to force an inline function to be expanded at compile time? (eg in C++)
|
f****s 发帖数: 315 | 3 Thanks! Is this a C++ syntax? Never used it before.
【在 g**g 的大作中提到】 : __attribute__((always_inline))
|
g**g 发帖数: 1575 | 4 g++ suports that, i am not sure about other compilers
【在 f****s 的大作中提到】 : Thanks! Is this a C++ syntax? Never used it before.
|