Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo : public std::enable_shared_from_this<Foo>
- {
- public:
- Foo(float a1, int a2) {
- someProp = a2;
- }
- ~Foo() {
- }
- int modifyProp(int modifier) {
- return someProp ^ modifier;
- }
- void getObject(JS::JSObjectPtr obj) {
- obj->call<void>(L"method1", shared_from_this());
- double x = obj->getObject(L"upperLeft")->getNumber(L"x");
- }
- int someProp;
- };
- float Foo_unbound(std::shared_ptr<Foo> pThis, float f) {
- return FLT_MAX;
- }
Advertisement
Add Comment
Please, Sign In to add comment