Examples of LloadFile()


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

  {
    // test loadfile
    LuaState L = LuaStateFactory.newLuaState();
    L.openLibs();
   
    int loadRes = L.LloadFile("wrongLuaFile.lua");
    assertEquals(loadRes, LuaState.LUA_ERRSYNTAX.intValue());
    System.out.println(L.toString(-1));
    L.pop(1);
   
    loadRes = L.LloadFile("simpleLuaFile.lua");
View Full Code Here

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

    int loadRes = L.LloadFile("wrongLuaFile.lua");
    assertEquals(loadRes, LuaState.LUA_ERRSYNTAX.intValue());
    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");
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.