diff options
Diffstat (limited to 'libjava/gcj/method.h')
-rw-r--r-- | libjava/gcj/method.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/gcj/method.h b/libjava/gcj/method.h index a97ba4a..e5402a0 100644 --- a/libjava/gcj/method.h +++ b/libjava/gcj/method.h @@ -18,4 +18,11 @@ _Jv_FromReflectedMethod(java::lang::reflect::Method *method) ((char *) method->declaringClass->methods + method->offset); } +extern inline jmethodID +_Jv_FromReflectedConstructor (java::lang::reflect::Constructor *constructor) +{ + return (jmethodID) + ((char *) constructor->declaringClass->methods + constructor->offset); +} + #endif /* __GCJ_METHOD_H__ */ |