Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@VINDIC You can't load C into Lua, the closest thing you can do is expose wrapped C functions in the Lua env so you can call them from Lua scripts. Are you sure you don't mean the other way round (Use Lua in C)?
-
VINDIC2985y@12bitfloat Thank you That is what I meant I am but a novice when it comes to languages like Lua so I don't know the terms for things.
-
No you can't just #include "file.lua" and have it work. Unfortunately the process is quite a bit more complicated and involves interfacing the two languages together. It takes a lot of research and practice as there aren't a ton of great resources available for such a task. Though, the Lua book is not a bad place to start. The online version is cut down quite immensely.
I am learning Lua because I am developing in a game. My question is would there be a way to load C into Lua
question
c c++ c# lua