Package org.keplerproject.luajava

Examples of org.keplerproject.luajava.LuaState.newTable()


  public void testMeta() throws LuaException
  {
    LuaState L = LuaStateFactory.newLuaState();
    L.openLibs();
   
    L.newTable();
    L.newTable();
    L.pushString("__index");
    L.LdoString("return function()" +
        "io.write( 'metatest\\n') io.stdout:flush() " +
        "return 'foo' " +
View Full Code Here


  {
    LuaState L = LuaStateFactory.newLuaState();
    L.openLibs();
   
    L.newTable();
    L.newTable();
    L.pushString("__index");
    L.LdoString("return function()" +
        "io.write( 'metatest\\n') io.stdout:flush() " +
        "return 'foo' " +
        "end");
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.