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

Intellisense not generated for statically exported functions using ADD_LIB #702

Open
op1337 opened this issue May 11, 2024 · 0 comments
Open

Comments

@op1337
Copy link

op1337 commented May 11, 2024

IntelliSense data is not generated for statically exported functions using ADD_LIB. For example, LuaLib_Object.cpp has its functions exported in the following way:

/**
 * Glue functions for UObject
 */
static const luaL_Reg UObjectLib[] =
{
    {"Load", UObject_Load},
    {"IsValid", UObject_IsValid},
    {"GetName", UObject_GetName},
    {"GetOuter", UObject_GetOuter},
    {"GetClass", UObject_GetClass},
    {"GetWorld", UObject_GetWorld},
    {"IsA", UObject_IsA},
    {"Release", UObject_Release},
    {"Destroy", UObject_Release},
    {"__eq", UObject_Identical},
    {"__gc", UObject_Delete},
    {nullptr, nullptr}
};


/**
 * Export UObject
 */
BEGIN_EXPORT_REFLECTED_CLASS(UObject)
    ADD_LIB(UObjectLib)
END_EXPORT_CLASS()

IMPLEMENT_EXPORTED_CLASS(UObject)

However, the generated IntelliSense file in IntelliSense/StaticallyExports/UObject.lua is as shown:

---@type UObject
local M = {}


return M

None of the functions are added to the IntelliSense file. This behavior is seen with all functions exported using ADD_LIB.

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