Not really sure what you're trying to achieve here. Do you have an application that lets you use Lua extensions? Or do you want to build an application that lets you use Lua extensions?
Programming
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
Whats the host language you try to embed lua into?
D.
It has C ABI compatibility, so it should work. But as others wrote, I might have messed up my Lua script.
Upvote for D, underrated lang.
let me take a guess, gta online modder ?
No, I'm developing my own engine.
One Lone Coder has made few videos about adding Lua scripting to a C++ program, maybe it has what you're looking for: Embedding Lua in C++ #1
Well, reference manual was enough for me. There' nothing difficult. You probably have troubles with your lua code, try executing it in the standalone interpreter.