merging in the win32bindings package
This commit is contained in:
1 parent
3b0a6af2d2
commit
6353b7bcc3
22 files changed
+3289
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#ifndef WIN32_BINDINGS_H
|
||||
#define WIN32_BINDINGS_H
|
||||
|
||||
/* Exclude rarely-used stuff from windows headers */
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
/* Windows Header Files */
|
||||
#include <windows.h>
|
||||
|
||||
#include <tchar.h>
|
||||
|
||||
/* Include java jni headers */
|
||||
#include <jni.h>
|
||||
|
||||
#define WIN32_PACKAGE "net/covalent/win32bindings/"
|
||||
|
||||
#define WIN32_FIND_CLASS(name) \
|
||||
JENV->FindClass(env, WIN32_PACKAGE name)
|
||||
|
||||
#define WIN32_ALLOC_OBJECT(name) \
|
||||
JENV->AllocObject(env, WIN32_FIND_CLASS(name))
|
||||
|
||||
#define SetStringField(env, obj, fieldID, val) \
|
||||
JENV->SetObjectField(env, obj, fieldID, JENV->NewStringUTF(env, val))
|
||||
|
||||
void win32_throw_exception(JNIEnv *env, char *msg);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user