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

Method to_swig

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

Source from the content-addressed store, hash-verified

80 self.getter = getter
81
82 def to_swig(self):
83 result = s(f'''\
84 %newobject {self.method_name};
85 {self.type.to_swig()} {self.method_name}({', '.join(a.to_swig() for a in self.args[1:])});
86 ''')
87 return result
88
89 def to_python(self):
90 if self.static:

Callers 1

to_swigMethod · 0.45

Calls 1

sFunction · 0.85

Tested by

no test coverage detected