Exemple #1
0
    def test_nested_calls_cgen(self):
        call = Call('foo', [
            Call('bar', [])
        ])

        code = CGen().visit(call)

        assert str(code) == 'foo(bar());'
Exemple #2
0
 def h_ccode(self):
     header_block = List(body=self._header_functions)
     return CGen().visit(header_block)