Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Block 1:
- void AddValueToP(int aValue)
- {
- g_P->AddValue(aValue);
- }
- module(L)
- [
- def("AddValueToP", &AddValueToP)
- ]
- Block 2:
- class P
- {
- public: AddValue(int);
- }
- module(L)
- [
- class_<P>("P")
- .def(constructor<>())
- .def("AddValue", &P::AddValue)
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement