Package com.naef.jnlua

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


            // Call
            luaState.call(2, 1); // 2 arguments, 1 return

            // Get and print result
            int result = luaState.toInteger(1);
            luaState.pop(1); // Pop result
            System.out.println("According to Lua, 1 + 1 = " + result);
        } finally {
                luaState.close();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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 coftware#gmail.com.