C linkage for static auth_current_user
locutus3009 opened this issue · comments
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