Skip to content
New issue

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

绑定c++静态成员函数 #4

Open
sss316 opened this issue Aug 31, 2015 · 5 comments
Open

绑定c++静态成员函数 #4

sss316 opened this issue Aug 31, 2015 · 5 comments

Comments

@sss316
Copy link

sss316 commented Aug 31, 2015

你好,最近开发碰到了个小需求:绑定c++静态成员函数
虽说c的绑定写法也可以实现, 但lua中调用看着别扭。
求更新。。。

@sniperHW
Copy link
Owner

最近比较忙,暂时没空处理

@sniperHW
Copy link
Owner

    .memb_function("show",&test_class_A::show)
    .static_function("static_func",&test_class_A::func_static);

临时加的,先用着吧,后面准备整理下代码了.

@sss316
Copy link
Author

sss316 commented Aug 31, 2015

好的

@sniperHW
Copy link
Owner

再次调整了一下
.method("show",&test_class_A::show)
.method("static_func",&test_class_A::func_static);
这样就行了

@sss316
Copy link
Author

sss316 commented Aug 31, 2015

更简洁了,辛苦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants