cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

compiler.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FUNC_ATTR_NORETURN
 
#define FUNC_ATTR_PRINTF(string_index, first_to_check)
 
#define FUNC_UNUSED
 
#define ARG_UNUSED
 
#define FUNC_WARN_UNUSED_RESULT
 
#define FUNC_DEPRECATED(msg)
 
#define UNUSED(x)   (void)(x)
 
#define STRINGIFY__INTERNAL_MACRO(x)   #x
 
#define TO_STRING(x)   STRINGIFY__INTERNAL_MACRO(x)
 

Macro Definition Documentation

◆ ARG_UNUSED

#define ARG_UNUSED

Definition at line 54 of file compiler.h.

◆ FUNC_ATTR_NORETURN

#define FUNC_ATTR_NORETURN

Definition at line 51 of file compiler.h.

◆ FUNC_ATTR_PRINTF

#define FUNC_ATTR_PRINTF (   string_index,
  first_to_check 
)

Definition at line 52 of file compiler.h.

◆ FUNC_DEPRECATED

#define FUNC_DEPRECATED (   msg)

Definition at line 57 of file compiler.h.

◆ FUNC_UNUSED

#define FUNC_UNUSED

Definition at line 53 of file compiler.h.

◆ FUNC_WARN_UNUSED_RESULT

#define FUNC_WARN_UNUSED_RESULT

Definition at line 55 of file compiler.h.

◆ STRINGIFY__INTERNAL_MACRO

#define STRINGIFY__INTERNAL_MACRO (   x)    #x

If you want a string literal version of a macro, useful in scanf formats:

#define BUFSIZE 1024 TO_STRING(BUFSIZE) -> "1024"

Definition at line 78 of file compiler.h.

◆ TO_STRING

#define TO_STRING (   x)    STRINGIFY__INTERNAL_MACRO(x)

Definition at line 79 of file compiler.h.

◆ UNUSED

#define UNUSED (   x)    (void)(x)

If you have a variable or function parameter unused under specific conditions (like ifdefs), you can suppress the "unused variable" warning by just doing UNUSED(x).

Definition at line 69 of file compiler.h.