diff options
Diffstat (limited to 'bundles/org.eclipse.swt.opengl/common/gl_library/swt.h')
-rw-r--r-- | bundles/org.eclipse.swt.opengl/common/gl_library/swt.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/bundles/org.eclipse.swt.opengl/common/gl_library/swt.h b/bundles/org.eclipse.swt.opengl/common/gl_library/swt.h deleted file mode 100644 index 0095fe654d..0000000000 --- a/bundles/org.eclipse.swt.opengl/common/gl_library/swt.h +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2003 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -#ifndef INC_swt_H -#define INC_swt_H - -#include "jni.h" - -/* For debugging */ -#define DEBUG_PRINTF(x) -/*#define DEBUG_PRINTF(x) printf x; */ - -/* define this to print out debug statements */ -/* #define DEBUG_CALL_PRINTS */ -/* #define DEBUG_CHECK_NULL_EXCEPTIONS */ - -#ifdef DEBUG_CALL_PRINTS -#define DEBUG_CALL(func) fprintf(stderr, func); -#else -#define DEBUG_CALL(func) -#endif - -#ifdef DEBUG_CHECK_NULL_EXCEPTIONS -#define DEBUG_CHECK_NULL(env, address) \ - if (address == 0) { \ - jclass clazz = (*env)->FindClass(env, "org/eclipse/swt/SWTError"); \ - if (clazz != NULL) { \ - (*env)->ThrowNew(env, clazz, "Argument cannot be NULL"); \ - } \ - return; \ - } -#else -#define DEBUG_CHECK_NULL(env, address) -#endif - -#define DECL_GLOB(pSym) -#define PGLOB(x) x - -#define NATIVE_ENTER(env,clazz,func) -#define NATIVE_EXIT(env,clazz,func) - -#endif /* ifndef INC_swt_H */ |