Add back deprecated function for compatibility

This commit is contained in:
James Roseborough
2013-12-30 23:54:20 +00:00
parent 337ff63dbb
commit 18c1116d22

View File

@@ -253,6 +253,14 @@ public class LuaC extends Lua implements Globals.Compiler, Globals.Loader {
return (new LuaC(new Hashtable())).luaY_parser(stream, chunkname);
}
/** @deprecated
* Use Globals.load(InputString, String, String) instead,
* or LuaC.compil(InputStream, String) and construct LuaClosure directly.
*/
public LuaValue load(InputStream stream, String chunkname, Globals globals) throws IOException {
return new LuaClosure(compile(stream, chunkname), globals);
}
/** Parse the input */
private Prototype luaY_parser(InputStream z, String name) throws IOException{