SymbolicC`
SymbolicC`

CDeclare

CDeclare[type,var]

is a symbolic representation of a variable declaration.

CDeclare[type,{var1,}]

declares a number of variables.

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)

To use SymbolicC you first need to load the package:

This declares an mbool variable:

You can give qualifiers to the type specification:

You can declare several variables: