File: CustomMethods.h.in

package info (click to toggle)
simpleitk 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 75,056 kB
  • sloc: cpp: 25,403; python: 3,060; sh: 1,131; ansic: 369; java: 260; cs: 215; makefile: 51; ruby: 47; tcl: 22
file content (19 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(if custom_methods and #custom_methods > 0 then
OUT=OUT..'\n'
for i=1,#custom_methods do
  OUT=OUT..'\n'
  if custom_methods[i].doc then
    OUT=OUT..'      /** '..custom_methods[i].doc..' */\n'
  end
  OUT=OUT..'      '..custom_methods[i].return_type..' '..custom_methods[i].name..'('
  if custom_methods[i].parameters then
    for pnum=1,#custom_methods[i].parameters do
      if not pnum == 1 then
        OUT=OUT..', '
      end
      OUT=OUT..custom_methods[i].parameters[pnum].type ..' '.. custom_methods[i].parameters[pnum].var_name
    end
  end
  OUT=OUT..[[ );
]]
end end)