We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
//cpp class A { public: void showA(){std::cout << "aaa";} }; class B { public: void showB(){ std::cout << "bbb"; } }; class c1 { public: A* newA() { return new A; } }; class c2 { public: B* newB() { return new B; } }; int main() { c1 c; c2 cc; sel::State state(true); state["A"].SetClass("showA", &A::showA); state["B"].SetClass("showB", &B::showB); state["c"].SetObj(c, "newA", &c1::newA); state["cc"].SetObj(cc, "newB", &c2::newB); state.Load("test.lua"); return 0; }
//test.lua a = c:newA() b = cc:newB() a:showA() b:showB()
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: