Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AndreiRudenko/linc_luajit
Haxe/hxcpp @:native bindings for LuaJIT.
https://github.com/AndreiRudenko/linc_luajit
Last synced: 2 months ago
JSON representation
Haxe/hxcpp @:native bindings for LuaJIT.
- Host: GitHub
- URL: https://github.com/AndreiRudenko/linc_luajit
- Owner: AndreiRudenko
- License: other
- Created: 2016-01-02T12:37:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T10:10:26.000Z (5 months ago)
- Last Synced: 2024-04-28T07:17:27.159Z (2 months ago)
- Language: Haxe
- Homepage:
- Size: 9.49 MB
- Stars: 46
- Watchers: 7
- Forks: 62
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-snowkit - linc_luajit
README
# linc/LuaJIT
Haxe/hxcpp @:native bindings for [LuaJIT](http://luajit.org/).This is a [linc](http://snowkit.github.io/linc/) library.
---
This library works with the Haxe cpp target only.
---
### Example usage
See test/Test.hx
Be sure to read the Lua documentation
www.lua.org/manual/5.1/manual.html```haxe
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);
}}
```