diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c index 84f3dadae7..f2efcab64b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl_stats.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -14,8 +14,6 @@ #ifdef NATIVE_STATS -int AGL_nativeFunctionCount = 14; -int AGL_nativeFunctionCallCount[14]; char * AGL_nativeFunctionNames[] = { "aglChoosePixelFormat", "aglCreateContext", @@ -32,6 +30,9 @@ char * AGL_nativeFunctionNames[] = { "aglSwapBuffers", "aglUpdateContext", }; +#define NATIVE_FUNCTION_COUNT sizeof(AGL_nativeFunctionNames) / sizeof(char*) +int AGL_nativeFunctionCount = NATIVE_FUNCTION_COUNT; +int AGL_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT]; #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func |