summaryrefslogtreecommitdiff
path: root/libs/python/pyste/tests/code_test.pyste
blob: 467996fdb46393fede0c4479c1adc29c3c08c175 (plain)
1
2
3
4
5
6
7
8
9
Class('A', 'code_test.h')
Include('string')
declaration_code('''
int get(A& a) { return a.x; }

std::string foo() { return "Hello!"; }
''')
module_code('    def("get", &get);\n')
module_code('    def("foo", &foo);\n')