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

Define my own modules #519

Open
CodeDoctorDE opened this issue Jan 29, 2025 · 3 comments
Open

Define my own modules #519

CodeDoctorDE opened this issue Jan 29, 2025 · 3 comments

Comments

@CodeDoctorDE
Copy link

Hello,
I want to use mlua in my plugin system but couldn't find a method to register my custom modules.
Is this possible?

For example i want to add helper methods to work with values that the lua program gets

@cheesycod
Copy link

Hello, I want to use mlua in my plugin system but couldn't find a method to register my custom modules. Is this possible?

For example i want to add helper methods to work with values that the lua program gets

One option is to override require function

@CodeDoctorDE
Copy link
Author

Hmm but then I dont have the same behavior...
Is there no built in way to define them

@khvzak
Copy link
Member

khvzak commented Jan 30, 2025

Could you provide mode details? What is "to register my custom modules"?

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

3 participants