package.org.eclipse.swt.macosx.x86_64.3.105.0.v20160603-0902.source-code.os.h Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.swt.macosx.x86_64 Show documentation
Show all versions of org.eclipse.swt.macosx.x86_64 Show documentation
The osx x86_64 swt jar as available in the Eclipse 4.6 (Neon) release for OSX. It is suitable for use with jface and other dependencies available from maven central in the org.eclipse.scout.sdk.deps group. The sources is copied from swt-4.6-cocoa-macosx-x86_64.zip from http://download.eclipse.org/eclipse/downloads/drops4/R-4.6-201606061100/ and javadoc is generated from sources.
The newest version!
/*******************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
#ifndef INC_os_H
#define INC_os_H
/*#define NDEBUG*/
/*#define DEBUG_EXCEPTIONS*/
#import
#include
#include
#include
#include
#include "mach-o/dyld.h"
#include "os_custom.h"
extern jint CPSSetProcessName(void *, jintLong);
#define OS_LOAD_FUNCTION LOAD_FUNCTION
#define objc_msgSend_bool objc_msgSend
#define objc_msgSendSuper_bool objc_msgSendSuper
#define objc_msgSend_floatret objc_msgSend_fpret
#ifndef __i386__
#define objc_msgSend_fpret objc_msgSend
#endif
/* The structure objc_super defines "class" in i386/ppc and "super_class" in x86_64 */
#ifdef __i386__
#define swt_super_class class
#elif __ppc__
#define swt_super_class class
#elif __x86_64__
#define swt_super_class super_class
#endif
#ifdef __i386__
#define STRUCT_SIZE_LIMIT 8
#elif __ppc__
#define STRUCT_SIZE_LIMIT 4
#elif __x86_64__
#define STRUCT_SIZE_LIMIT 16
#endif
#ifdef DEBUG_EXCEPTIONS
#define DUMP_EXCEPTION \
if (![[nsx name] isEqualToString:NSAccessibilityException]) { \
NSLog(@"Exception thrown: %@ %@", [nsx name], [nsx reason]); \
jclass threadClass = (*env)->FindClass(env, "java/lang/Thread"); \
jmethodID dumpStackID = (*env)->GetStaticMethodID(env, threadClass, "dumpStack", "()V"); \
if (dumpStackID != NULL) (*env)->CallStaticVoidMethod(env, threadClass, dumpStackID, 0); \
}
#else
#define DUMP_EXCEPTION
#endif
#ifndef NATIVE_STATS
#define OS_NATIVE_ENTER(env, that, func) \
@try {
#define OS_NATIVE_EXIT(env, that, func) \
} \
@catch (NSException *nsx) { \
DUMP_EXCEPTION \
}
#endif
#endif /* INC_os_H */
© 2015 - 2025 Weber Informatics LLC | Privacy Policy