-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also fix AndroidScriptTest
- Loading branch information
Showing
6 changed files
with
85 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
luajava/src/main/java/party/iroiro/luajava/value/LuaFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package party.iroiro.luajava.value; | ||
|
||
import party.iroiro.luajava.Lua; | ||
|
||
/** | ||
* Interface for functions implemented in Java. | ||
*/ | ||
public interface LuaFunction { | ||
/** | ||
* Implements the function body | ||
* | ||
* <p> | ||
* Unlike {@link party.iroiro.luajava.JFunction#__call(Lua)}, before actually calling this function, | ||
* the library converts all the arguments to {@link LuaValue LuaValues} and pops them off the stack. | ||
* </p> | ||
* | ||
* @param L the Lua state | ||
* @param args the arguments | ||
* @return the return values (nullable) | ||
*/ | ||
LuaValue[] call(Lua L, LuaValue[] args); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters