macrotools.h File Reference

Go to the source code of this file.

Defines

#define SMTG_CAT_PRIVATE_DONT_USE(a, b)   a ## b
#define SMTG_MAKE_STRING_PRIVATE_DONT_USE(x)   # x
#define SMTG_CAT(a, b)   SMTG_CAT_PRIVATE_DONT_USE(a,b)
#define SMTG_MAKE_STRING(x)   SMTG_MAKE_STRING_PRIVATE_DONT_USE(x)


Define Documentation

#define SMTG_CAT ( a,
 )     SMTG_CAT_PRIVATE_DONT_USE(a,b)

Concatenation of macroexpanded tokens.

Example:
                #undef x
                #define y 16
                SMTG_XCAT(x,y)          // ==>  'x16' (not 'xy' !)

Definition at line 46 of file macrotools.h.

#define SMTG_CAT_PRIVATE_DONT_USE ( a,
 )     a ## b

Private, don't use use SMTG_CAT instead.

Definition at line 30 of file macrotools.h.

#define SMTG_MAKE_STRING (  )     SMTG_MAKE_STRING_PRIVATE_DONT_USE(x)

Convert tokens to strings.

Example:
                #define y This is a test
                SMTG_MAKE_STRING(y)             // ==>  "This is a test" (not "y" !)

Definition at line 56 of file macrotools.h.

#define SMTG_MAKE_STRING_PRIVATE_DONT_USE (  )     # x

Private, don't use use SMTG_MAKE_STRING instead.

Definition at line 34 of file macrotools.h.

Empty


Copyright ©2008 Steinberg Media Technologies. All Rights Reserved.