LAMA
/home/brandes/workspace/LAMA/src/lama/macros/unique_name.hpp File Reference

Some macro utilities for generating symbol names. More...

Go to the source code of this file.

Defines

#define LAMA_JOIN(symbol1, symbol2)   _LAMA_DO_JOIN( symbol1, symbol2 )
 Help macro to concatenate two symbols, can also deal with nested calls.
#define _LAMA_DO_JOIN(symbol1, symbol2)   _LAMA_DO_JOIN2( symbol1, symbol2 )
 Help macro to deal with nested calls of LAMA_JOIN.
#define _LAMA_DO_JOIN2(symbol1, symbol2)   symbol1##symbol2
 Furtherhelp macro to deal with nested calls of LAMA_JOIN.
#define LAMA_UNIQUE_NAME(prefix, postfix)   LAMA_JOIN( prefix , LAMA_JOIN( __LINE__ , postfix ) )
 Creates a unique symbol name by joining the prefix, the line and the postfix.

Detailed Description

Some macro utilities for generating symbol names.

Author:
Jiri Kraus
Date:
06.04.2011 $Id$

Define Documentation

#define _LAMA_DO_JOIN (   symbol1,
  symbol2 
)    _LAMA_DO_JOIN2( symbol1, symbol2 )

Help macro to deal with nested calls of LAMA_JOIN.

#define _LAMA_DO_JOIN2 (   symbol1,
  symbol2 
)    symbol1##symbol2

Furtherhelp macro to deal with nested calls of LAMA_JOIN.

#define LAMA_JOIN (   symbol1,
  symbol2 
)    _LAMA_DO_JOIN( symbol1, symbol2 )

Help macro to concatenate two symbols, can also deal with nested calls.

#define LAMA_UNIQUE_NAME (   prefix,
  postfix 
)    LAMA_JOIN( prefix , LAMA_JOIN( __LINE__ , postfix ) )

Creates a unique symbol name by joining the prefix, the line and the postfix.

  LAMA_UNIQUE_NAME( Interface, Registry ) -> Interface17Registry