Commit a8234831 authored by Lubomir Bulej's avatar Lubomir Bulej

Cosmetic changes

parent df520795
...@@ -197,7 +197,7 @@ static void ...@@ -197,7 +197,7 @@ static void
__jvmti_enable_events (jvmtiEnv * jvmti, jvmtiEvent * events, size_t count) { __jvmti_enable_events (jvmtiEnv * jvmti, jvmtiEvent * events, size_t count) {
for (unsigned int i = 0; i < count; i++) { for (unsigned int i = 0; i < count; i++) {
jvmtiEvent event = events [i]; jvmtiEvent event = events [i];
jvmtiError event_error = (*jvmti)->SetEventNotificationMode ( jvmtiError error = (*jvmti)->SetEventNotificationMode (
jvmti, JVMTI_ENABLE, event, NULL jvmti, JVMTI_ENABLE, event, NULL
); );
......
...@@ -3,14 +3,13 @@ ...@@ -3,14 +3,13 @@
#include "common.h" #include "common.h"
#include <jvmti.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
// #include <jvmti.h>
void die_with_jvmti_error ( //
jvmtiEnv * jvmti, jvmtiError error, const char * format, va_list args
);
unsigned char * jvmti_alloc_copy (jvmtiEnv * jvmti, const void * src, size_t size); unsigned char * jvmti_alloc_copy (jvmtiEnv * jvmti, const void * src, size_t size);
...@@ -35,6 +34,12 @@ jlong jvmti_get_object_tag (jvmtiEnv * jvmti, jobject object); ...@@ -35,6 +34,12 @@ jlong jvmti_get_object_tag (jvmtiEnv * jvmti, jobject object);
jlong jvmti_set_object_tag (jvmtiEnv * jvmti, jobject object, jlong tag); jlong jvmti_set_object_tag (jvmtiEnv * jvmti, jobject object, jlong tag);
//
void die_with_jvmti_error (
jvmtiEnv * jvmti, jvmtiError error, const char * format, va_list args
);
/** /**
* Checks whether a JVMTI invocation returned an error. Every JVMTI interface * Checks whether a JVMTI invocation returned an error. Every JVMTI interface
...@@ -43,7 +48,7 @@ jlong jvmti_set_object_tag (jvmtiEnv * jvmti, jobject object, jlong tag); ...@@ -43,7 +48,7 @@ jlong jvmti_set_object_tag (jvmtiEnv * jvmti, jobject object, jlong tag);
*/ */
static inline void static inline void
check_jvmti_error ( check_jvmti_error (
jvmtiEnv * restrict jvmti, jvmtiError errnum, jvmtiEnv * restrict jvmti, jvmtiError errnum,
const char * restrict format, ... const char * restrict format, ...
) { ) {
if (errnum != JVMTI_ERROR_NONE) { if (errnum != JVMTI_ERROR_NONE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment