-
Notifications
You must be signed in to change notification settings - Fork 2
Home
kamih edited this page Jul 14, 2012
·
3 revisions
Lua is my favorite scripting language. It’s simple, light, fast and powerful. It has a well designed and easy to use C-API which makes embedding it into larger C/C++ applications a snap.
It’s for these reasons that I’ve been using it in VoidStorm for configuration files and game logic.
LuaUtils is a little library I have been developing that wraps Lua functionality into C++ Classes, to avoid having to deal with the Lua state and stack directly.
It provides the following classes:
- LuaState – a class that allows you to load Lua code, set and get global values
- LuaTable – a class that allows you to get and set values in a Lua table
- LuaFunction – a class that allows you to easily call Lua functions from your C++ code
- LuaStateCFunc – an extended version of LuaState that provides special functions to be used in Lua C functions
- LuaTableCFunc – an extended version of LuaTable that provides special functions to be used in Lua C functions