[66] | 1 | divert(-1) |
---|
| 2 | ## |
---|
| 3 | ## NEUROCLASS(c_classname,name,longname,description,prefinputs,prefoutput,preflocat) |
---|
| 4 | ## $1 $2 $3 $4 $5 $6 $7 |
---|
| 5 | ## SYMBOL(vectordata) |
---|
| 6 | ## |
---|
| 7 | ## NEUROPROP(id,group,flags,name,type,min,max,def,field) |
---|
| 8 | ## $1 $2 $3 $4 $5 $6 $7 $8 $9 |
---|
| 9 | ## ENDNEUROCLASS |
---|
| 10 | ## |
---|
| 11 | |
---|
| 12 | define(`Invisible',1) |
---|
| 13 | define(`DontShowClass',`2') |
---|
| 14 | define(`AtFirstPart',`4') |
---|
| 15 | define(`AtSecondPart',`8') |
---|
| 16 | define(`InTheMiddle',`12') |
---|
| 17 | define(`EffectorClass',`16') |
---|
| 18 | define(`ReceptorClass',`32') |
---|
| 19 | define(`V1BendMuscle',`64') |
---|
| 20 | define(`V1RotMuscle',`128') |
---|
| 21 | |
---|
| 22 | define(`nargs', `$#') |
---|
| 23 | define(`CLASS',`dnl') |
---|
| 24 | define(`GROUP',`dnl') |
---|
| 25 | define(`PROP',`dnl') |
---|
| 26 | define(`XPROP',`dnl') |
---|
| 27 | define(`ENDCLASS',`dnl') |
---|
| 28 | |
---|
| 29 | define(`TABNAME',`NI_$1_tab') |
---|
| 30 | define(`CLSNAME',`NI_$1') |
---|
| 31 | define(`XYNAME',`$1_xy') |
---|
| 32 | |
---|
| 33 | define(`SYMBOL',`divert static int XYNAME(currentcls)[]={nargs($1),`$1'}; define(`hasxy',+) divert(2)') |
---|
| 34 | |
---|
| 35 | define(`VISUALHINTS',`define(`vhints',$1)') |
---|
| 36 | |
---|
| 37 | define(`NEUROCLASS',`define(`numprops',`0') define(`currentcls',$1) define(`hasxy',) define(`vhints',0) divert(1) |
---|
| 38 | static ParamEntry TABNAME($1)[]={ |
---|
| 39 | {"$3",1,divert(2),"$2",},divert(3) |
---|
| 40 | {0,0,0,},}; |
---|
| 41 | addClass(new NeuroClass(TABNAME($1),"$4",$5,$6,$7,divert(2)')) |
---|
| 42 | |
---|
| 43 | define(`ENDNEUROCLASS',`divert undivert(1) numprops undivert(2) undivert(3) ifelse(hasxy,,0,XYNAME(currentcls)`,0'),vhints));') |
---|
| 44 | define(`NEUROPROP',`define(`numprops',incr(numprops)){"$1",$2,$3,"$4","$5 $6 $7 $8",},') |
---|
| 45 | |
---|
| 46 | divert |
---|
| 47 | // do not edit - generated automatically from "f0.def" |
---|
| 48 | // (to be included in "neurolibrary.cpp") |
---|