projects
/
mate.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
methodpool: also call native methods
[mate.git]
/
tests
/
Native1.java
1
package tests;
2
3
public class Native1 {
4
public static void main(String []args) {
5
printSomething();
6
for (int i = 0; i < 10; i++)
7
printNumber(0x1337 + i);
8
printSomething();
9
printSomething();
10
printNumber(0x15a5);
11
}
12
13
public static void printNumber(int a) {
14
printSomething(a);
15
}
16
17
public static native void printSomething();
18
public static native void printSomething(int a);
19
}