SymbolicC`
SymbolicC`

CDefine

CDefine[def]

is a symbolic representation of a preprocessor define.

CDefine[def,val]

is a symbolic representation of a preprocessor define with value val.

Details

  • SymbolicC expressions are inert; they evaluate to themselves, staying in an unevaluated form.
  • SymbolicC expressions can be converted into a C string with ToCCodeString.

Examples

Basic Examples  (1)

This creates a preprocessor define directive:

Define a numerical constant:

Define a multiplication macro: