资 源 简 介
NEW HOMEPAGE: https://github.com/radiotail/eluna
ELuna - Extended Luna
ELuna is a simple library to bind C/C++ and Lua(support lua 5.2/5.1), which just depends on Lua library. It is clear and lightweight. You can include ELuna and Lua in your project to use. My original intention is to do some extension for Luna, so its main idea bases on luna. Users don"t have to focus on the details of binding C++ and Lua, but use some simple API provided by ELuna to bind cpp class, method, function or to bind lua function, table.
Before version 1.1, ELuna copied class"s all methods to object"s table when you create an object, that is the same as Luna. It needn"t find method from metatable when you call cpp method, but object creation is very slow. Obviously, this way may be a good chiose when you call its method many times but create object rarely. In order to improve its efficiency, I do some adjustments in later versions. I use a new way to bind method which does