source:
downloads/boost_1_33_1/libs/python/pyste/tests/code_test.pyste
@
14
| Last change on this file since 14 was 12, checked in by landauf, 18 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.










