source:
downloads/boost_1_34_1/libs/python/pyste/tests/code_test.pyste
@
47
| Last change on this file since 47 was 29, checked in by landauf, 17 years ago | |
|---|---|
| File size: 218 bytes | |
| Line | |
|---|---|
| 1 | Class('A', 'code_test.h') |
| 2 | Include('string') |
| 3 | declaration_code(''' |
| 4 | int get(A& a) { return a.x; } |
| 5 | |
| 6 | std::string foo() { return "Hello!"; } |
| 7 | ''') |
| 8 | module_code(' def("get", &get);\n') |
| 9 | module_code(' def("foo", &foo);\n') |
Note: See TracBrowser
for help on using the repository browser.










