kunitoki / LuaBridge3

A lightweight, dependency-free library for binding Lua to C++
https://kunitoki.github.io/LuaBridge3/Manual
Other
252 stars 39 forks source link

NAI run lua code in string from cpp #189

Open PublicVoidUpdate opened 5 months ago

PublicVoidUpdate commented 5 months ago

NAI read through the wiki, and maybe i just missed it, strings but how do you pass/run lua code literals from cpp.

For example, i am making a game in cpp where a player can use a computer that runs lua (and an os based on lua) so my question is after i get the user code/from a file or literal, or wherever, and store it as a string how do i then run the string as lua? and then of course catch issues so i can display them in game, and not in a irl console.

kunitoki commented 3 weeks ago

I'm sorry but i don't get what are you talking about. Could you explain better what are you looking for ?