Package com.naef.jnlua

Examples of com.naef.jnlua.LuaState.load()

        // Create a Lua state
        LuaState luaState = new LuaState();
        try {
            // Define a function
            luaState.load("function add(a, b) return a + b end", "=simple");

            // Evaluate the chunk, thus defining the function
  , 0); // No arguments, no returns

            // Prepare a function call
View Full Code Here

Copyright © 2018 All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact