Implemented TerminalAccess.isTerminal() and Terminal.getTerminalSize() on windows.
This commit is contained in:
24
src/main/headers/generic.h
Executable file
24
src/main/headers/generic.h
Executable file
@@ -0,0 +1,24 @@
|
||||
#ifndef __INCLUDE_GENERIC_H__
|
||||
#define __INCLUDE_GENERIC_H__
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Marks the given result as failed, using the given error message
|
||||
*/
|
||||
extern void mark_failed_with_message(JNIEnv *env, const char* message, jobject result);
|
||||
|
||||
/*
|
||||
* Marks the given result as failed, using the given error message and error code
|
||||
*/
|
||||
extern void mark_failed_with_code(JNIEnv *env, const char* message, int error_code, jobject result);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user