1.4. Binding Shortcuts

For your convenience, the ctypes declaration allows multiple type bindings to be defined at once. Each Felix name must also be a c identifier representing a type in C.
Start felix section to tut/embedding/bind-1.03-0.flx[1 /1 ]
     1: #line 268 "./lpsrc/flx_tut_bind.pak"
     2: header "#include <cstdio>";
     3: ctypes int, long;
     4: proc print:int = 'printf("%d\\n",$1);';
     5: print 1;
     6: print 2;
End felix section to tut/embedding/bind-1.03-0.flx[1]
Start data section to tut/embedding/bind-1.03-0.expect[1 /1 ]
     1: 1
     2: 2
End data section to tut/embedding/bind-1.03-0.expect[1]