mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 13:56:00 +00:00
e0890d03a4
Add properties and variables corresponding to CXX equivalents. Add features for c_function_prototypes (C90), c_restrict (C99), c_variadic_macros (C99) and c_static_assert (C11). This feature set can be extended later. Add a <PREFIX>_RESTRICT symbol define to WriteCompilerDetectionHeader to conditionally represent the c_restrict feature.
16 lines
188 B
C
16 lines
188 B
C
|
|
int someFunc(int i1, char c, int i2)
|
|
{
|
|
(void)i1;
|
|
(void)c;
|
|
(void)i2;
|
|
return 0;
|
|
}
|
|
|
|
#define FUNC_WRAPPER(...) someFunc(__VA_ARGS__)
|
|
|
|
void otherFunc()
|
|
{
|
|
FUNC_WRAPPER(42, 'a', 7);
|
|
}
|