New in Wolfram
Mathematica
8: SymbolicC
◄
previous
|
next
►
Software Development
Support for All C Constructs
SymbolicC has the ability to express all C programming constructs. The following generates a function prototype, and then defines it.
In[1]:=
X
Needs["SymbolicC`"] CProgram[{ CFunction[ int, fun, {{int, i}}], CFunction[int, fun, {{int, i}}, CReturn[ COperator[ Plus, {i, 1}]]] }] // ToCCodeString
Out[1]=