Add version "Luaj ${version}" into _VERSION field at build time.

This commit is contained in:
James Roseborough
2008-05-19 17:18:10 +00:00
parent d9c3f0ae15
commit 8d055862e0
10 changed files with 39 additions and 25 deletions

View File

@@ -0,0 +1,21 @@
package org.luaj.jit;
import java.io.IOException;
import org.luaj.jit.LuaJit;
import org.luaj.vm.LPrototype;
import org.luaj.vm.LuaJTest;
import org.luaj.vm.LuaState;
/**
* Suite of standard tests, but using the LuaJit compiler
* for all loaded prototypes.
*/
public class LuaJitTest extends LuaJTest {
protected LPrototype loadScriptResource( LuaState state, String name ) throws IOException {
LPrototype p = super.loadScriptResource(state, name);
return LuaJit.jitCompile(p);
}
}