Examples of pcall()


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

    System.out.println(L.toString(-1));
    L.pop(1);
   
    loadRes = L.LloadFile("simpleLuaFile.lua");
    assertEquals(loadRes, 0);
    L.pcall(0, 0, 0);

    // test loadbuffer
    FileInputStream input = new FileInputStream("wrongLuaFile.lua");
    byte[] bytes = new byte[input.available()];
    input.read(bytes);
View Full Code Here

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

    input.read(bytes);
    input.close();
   
    loadRes = L.LloadBuffer(bytes, "test2");
    assertEquals(0, loadRes);
    L.pcall(0, 0, 0);
   
    L.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.