首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > eluna(扩展Luna)

eluna(扩展Luna)

  • 资源大小:30.54 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: lua CPlusPlus

资 源 简 介

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

文 件 列 表

ELuna
ELuna.h
ELuna.sln
ELuna.vcproj
ELuna.vcxproj
ELuna.vcxproj.filters
licence.txt
lua
lua51.lib
readme.txt
sample.cpp
sample.lua
testInterface.cpp
testInterface.lua
VIP VIP
0.165792s