TNeo  BETA v1.08-11-g97e5a6d
Macros
tn_common_macros.h File Reference

Detailed Description

Macros that may be useful for any part of the kernel.

Note: only preprocessor macros allowed here, so that the file can be included in any source file (C, assembler, or whatever)

Definition in file tn_common_macros.h.

Go to the source code of this file.

Macros

#define _TN_STRINGIFY_LITERAL(x)   #x
 Macro that expands to string representation of its argument: for example,. More...
 
#define _TN_STRINGIFY_MACRO(x)   _TN_STRINGIFY_LITERAL(x)
 Macro that expands to string representation of its argument, which is allowed to be a macro: for example,. More...
 

Macro Definition Documentation

◆ _TN_STRINGIFY_LITERAL

#define _TN_STRINGIFY_LITERAL (   x)    #x

Macro that expands to string representation of its argument: for example,.

expands to:

"5"

See also _TN_STRINGIFY_MACRO()

Definition at line 70 of file tn_common_macros.h.

◆ _TN_STRINGIFY_MACRO

#define _TN_STRINGIFY_MACRO (   x)    _TN_STRINGIFY_LITERAL(x)

Macro that expands to string representation of its argument, which is allowed to be a macro: for example,.

#define MY_VALUE 10
_TN_STRINGIFY_MACRO(MY_VALUE)

expands to:

"10"

Definition at line 88 of file tn_common_macros.h.