[solved] Creating Lua functions on the fly.

Started by
2 comments, last by Nitage 17 years, 7 months ago
Is is possible to create Lua functions without having to edit&recompile the C++ code ( i.e. another lua function that registers/enables the new function)? Thanks [Edited by - Calin on September 26, 2006 10:44:11 AM]

My project`s facebook page is “DreamLand Page”

Advertisement
Your gonna have to be more specific do you mean register a c++ function so you can use it in lua then no there isn't.
Quote:Original post by JHL
Your gonna have to be more specific do you mean register a c++ function so you can use it in lua then no there isn't.


I need a Lua function that I'd call from another Lua function. I just realized u don't have to register them for use inside lua.
Sorry I'm still confused about the whole Lua thing [smile].

My project`s facebook page is “DreamLand Page”

Embedding a scripting language in C++ is quite difficult to get your head around. When I first started to do it, I had to spend quite a while playing around with it to understand what behaviour was possible before I got round to doing anything useful.

This topic is closed to new replies.

Advertisement