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

Broken addFunction for __stdcall calling convention #274

Open
dmitry-t opened this issue Dec 7, 2021 · 0 comments
Open

Broken addFunction for __stdcall calling convention #274

dmitry-t opened this issue Dec 7, 2021 · 0 comments

Comments

@dmitry-t
Copy link
Collaborator

dmitry-t commented Dec 7, 2021

MSVS 2019, Win32:

11>...\Tests\Source\NamespaceTests.cpp(320,69): error C2664: 'luabridge::Namespace &luabridge::Namespace::addFunction(const char *,int (__cdecl *const )(lua_State *))': cannot convert argument 2 from 'int (__stdcall *)(int)' to 'int (__cdecl *const )(lua_State *)'
11>...\Tests\Source\NamespaceTests.cpp(320,61): message : This conversion requires a reinterpret_cast, a C-style cast or function-style cast
11>...\Source\LuaBridge/detail/Namespace.h(1305,16): message : see declaration of 'luabridge::Namespace::addFunction'
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

1 participant