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 linkage for static auth_current_user #8

Open
locutus3009 opened this issue Nov 30, 2023 · 0 comments · May be fixed by #9
Open

C linkage for static auth_current_user #8

locutus3009 opened this issue Nov 30, 2023 · 0 comments · May be fixed by #9

Comments

@locutus3009
Copy link

Please prove me if I am wrong, but

static int auth_current_user(lua_State *L) { ...

must have a C linkage as well e.g. it must be enclosed in extern "C" {} because lua expects functions with C calling convention.

If you don't mind, I may prepare a MR

@locutus3009 locutus3009 linked a pull request Dec 10, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant