eĿlipsis
a language independent preprocessor
 
Loading...
Searching...
No Matches
ellipsis-assign.dirs File Reference

An eĿlipsis extension to evaluate and assign an expression. More...

Macros

#define EXPR
 The expression that will be expanded and then assigned.
 
#define VAR()
 The name of the macro to which we will assign.
 

Detailed Description

An eĿlipsis extension to evaluate and assign an expression.

Use this such as in

#include_directives 〈ellipsis-assign.dirs〉 \
__prefix__(bind VAR A) \
__prefix__(bind EXPR __EVALUATE_DEC__(4*5))

This assigns the token 20 to the macro A().

Macro Definition Documentation

◆ EXPR

#define EXPR

The expression that will be expanded and then assigned.

◆ VAR

#define VAR ( )

The name of the macro to which we will assign.

Note that the macro is a functional macro. For its evaluation you have to add parentheses as in VAR().