1 /*******************************************************************************
2 * Copyright (c) 2000, 2019 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
23 char * C_nativeFunctionNames[] = {
49 #define NATIVE_FUNCTION_COUNT sizeof(C_nativeFunctionNames) / sizeof(char*)
50 int C_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
51 int C_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
53 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
55 JNIEXPORT jint JNICALL STATS_NATIVE(C_1GetFunctionCount)
56 (JNIEnv *env, jclass that)
58 return C_nativeFunctionCount;
61 JNIEXPORT jstring JNICALL STATS_NATIVE(C_1GetFunctionName)
62 (JNIEnv *env, jclass that, jint index)
64 return (*env)->NewStringUTF(env, C_nativeFunctionNames[index]);
67 JNIEXPORT jint JNICALL STATS_NATIVE(C_1GetFunctionCallCount)
68 (JNIEnv *env, jclass that, jint index)
70 return C_nativeFunctionCallCount[index];