Examples of pushInteger()


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

            // Evaluate the chunk, thus defining the function
            luaState.call(0, 0); // No arguments, no returns

            // Prepare a function call
            luaState.getGlobal("add"); // Push the function on the stack
            luaState.pushInteger(1); // Push argument #1
            luaState.pushInteger(1); // Push argument #2

            // Call
            luaState.call(2, 1); // 2 arguments, 1 return
View Full Code Here

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

            luaState.call(0, 0); // No arguments, no returns

            // Prepare a function call
            luaState.getGlobal("add"); // Push the function on the stack
            luaState.pushInteger(1); // Push argument #1
            luaState.pushInteger(1); // Push argument #2

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

            // Get and print result
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.