Statistics
| Branch: | Revision:

root / src / org.omnetpp.ide.nativelibs / stacktrace.i @ 79bb12dc

History | View | Annotate | Download (292 Bytes)

1
%{
2

    
3
int printStackTrace(JNIEnv *env)
4
{
5
	jclass clazz = env->FindClass("java/lang/Thread");
6
	if (!clazz)
7
		return -1;
8

    
9
	jmethodID method = env->GetStaticMethodID(clazz, "dumpStack", "()V");
10
	if (!method)
11
		return -2;
12

    
13
	env->CallStaticVoidMethod(clazz, method);
14
	return 0;
15
}
16

    
17
%}