New autoload and math test cases. Currently autoload does not work because
the GETGLOBAL instruction does not handle the case where a metatable method is invoked.
This commit is contained in:
7
src/test/res/math.lua
Normal file
7
src/test/res/math.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
local mathClass = luajava.bindClass("java.lang.Math")
|
||||
|
||||
local function sqrt(x)
|
||||
return mathClass:sqrt(x)
|
||||
end
|
||||
|
||||
return { sqrt = sqrt; pi = mathClass.PI }
|
||||
Reference in New Issue
Block a user