Add version "Luaj ${version}" into _VERSION field at build time.
This commit is contained in:
21
src/test/java/org/luaj/jit/LuaJitTest.java
Normal file
21
src/test/java/org/luaj/jit/LuaJitTest.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user