source: cpp/gdk/neurocls-library.m4 @ 106

Last change on this file since 106 was 66, checked in by Maciej Komosinski, 14 years ago

set 'eol-style' to 'native'

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1divert(-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
12define(`Invisible',1)
13define(`DontShowClass',`2')
14define(`AtFirstPart',`4')
15define(`AtSecondPart',`8')
16define(`InTheMiddle',`12')
17define(`EffectorClass',`16')
18define(`ReceptorClass',`32')
19define(`V1BendMuscle',`64')
20define(`V1RotMuscle',`128')
21
22define(`nargs', `$#')
23define(`CLASS',`dnl')
24define(`GROUP',`dnl')
25define(`PROP',`dnl')
26define(`XPROP',`dnl')
27define(`ENDCLASS',`dnl')
28
29define(`TABNAME',`NI_$1_tab')
30define(`CLSNAME',`NI_$1')
31define(`XYNAME',`$1_xy')
32
33define(`SYMBOL',`divert static int XYNAME(currentcls)[]={nargs($1),`$1'}; define(`hasxy',+) divert(2)')
34
35define(`VISUALHINTS',`define(`vhints',$1)')
36
37define(`NEUROCLASS',`define(`numprops',`0') define(`currentcls',$1) define(`hasxy',) define(`vhints',0) divert(1)
38static ParamEntry TABNAME($1)[]={
39{"$3",1,divert(2),"$2",},divert(3)
40{0,0,0,},};
41addClass(new NeuroClass(TABNAME($1),"$4",$5,$6,$7,divert(2)'))
42
43define(`ENDNEUROCLASS',`divert undivert(1) numprops undivert(2) undivert(3) ifelse(hasxy,,0,XYNAME(currentcls)`,0'),vhints));')
44define(`NEUROPROP',`define(`numprops',incr(numprops)){"$1",$2,$3,"$4","$5 $6 $7 $8",},')
45
46divert
47// do not edit - generated automatically from "f0.def"
48// (to be included in "neurolibrary.cpp")
Note: See TracBrowser for help on using the repository browser.