MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / to_swig

Method to_swig

bindings/frankenswig/function.py:11–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 self.docs = docs
10
11 def to_swig(self):
12 result = s(f'''\
13 {self.type.to_swig()} {self.name}({', '.join(a.to_swig() for a in self.args)});
14 ''')
15 return result
16
17 def to_c(self):
18 return f'''{doxygen(self.docs)}{self.type.to_c()} {self.name}({', '.join(a.to_c() for a in self.args)});\n'''

Callers

nothing calls this directly

Calls 2

sFunction · 0.85
to_swigMethod · 0.45

Tested by

no test coverage detected