在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AndreiRudenko/linc_luajit开源软件地址(OpenSource Url):https://github.com/AndreiRudenko/linc_luajit开源编程语言(OpenSource Language):Haxe 46.2%开源软件介绍(OpenSource Introduction):linc/LuaJITHaxe/hxcpp @:native bindings for LuaJIT. This is a linc library. This library works with the Haxe cpp target only. Example usageSee test/Test.hx Be sure to read the Lua documentation import llua.Lua;
import llua.LuaL;
import llua.State;
class Test {
static function main() {
var lua:State = LuaL.newstate();
LuaL.openlibs(lua);
trace("Lua version: " + Lua.version());
trace("LuaJIT version: " + Lua.versionJIT());
LuaL.dofile(lua, "script.lua");
Lua.getglobal(lua, "foo");
Lua.pushinteger(lua, 1);
Lua.pushnumber(lua, 2.0);
Lua.pushstring(lua, "three");
Lua.pcall(lua, 3, 0, 1);
Lua.close(lua);
}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论