Skip to content

Legacy version of the Haxe/hxcpp LuaJIT library made exclusively to make FNF Psych Engine 0.4 - 0.6 compile.

License

Notifications You must be signed in to change notification settings

Honton129/legacy_luajit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A fork from NebulaZorua's repository.

This library is meant to work on FNF Psych Engine versions prior to 0.7.

If you need a library to compile those versions or need more platforms support, use superpowers04 version.

linc/LuaJIT

Haxe/hxcpp @:native bindings for LuaJIT.

This is a 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

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);
        
    }

}

About

Legacy version of the Haxe/hxcpp LuaJIT library made exclusively to make FNF Psych Engine 0.4 - 0.6 compile.

Resources

License

Stars

Watchers

Forks

Languages

  • Haxe 46.9%
  • C 39.1%
  • C++ 13.8%
  • Lua 0.2%