#ifndef _LLNI_H
#define _LLNI_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "config.h"
/* forward defines ************************************************************/
#endif
-#include "native/localref.h"
+#include "native/localref.hpp"
#include "threads/thread.hpp"
#define LLNI_field_direct(obj, field) (LLNI_DIRECT(obj)->field)
#define LLNI_vftbl_direct(obj) (LLNI_DIRECT((java_handle_t *) (obj))->vftbl)
-#define LLNI_array_direct(arr, index) (LLNI_DIRECT(arr)->data[(index)])
-#define LLNI_array_data(arr) (LLNI_DIRECT(arr)->data)
-#define LLNI_array_size(arr) (LLNI_DIRECT((java_handle_objectarray_t *) (arr))->header.size)
/* LLNI critical sections ******************************************************
# define LLNI_CRITICAL_END_THREAD(t)
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void llni_critical_start();
void llni_critical_end();
void llni_critical_start_thread(threadobject *t);