Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
3013c5fe
Commit
3013c5fe
authored
Nov 10, 2015
by
Andrew Twyman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove no-longer-valid noexcept on unbox methods.
parent
5bc38143
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
support-lib/jni/Marshal.hpp
support-lib/jni/Marshal.hpp
+7
-7
No files found.
support-lib/jni/Marshal.hpp
View file @
3013c5fe
...
@@ -80,7 +80,7 @@ namespace djinni
...
@@ -80,7 +80,7 @@ namespace djinni
Bool
()
:
Primitive
(
"java/lang/Boolean"
,
"valueOf"
,
"(Z)Ljava/lang/Boolean;"
,
"booleanValue"
,
"()Z"
)
{}
Bool
()
:
Primitive
(
"java/lang/Boolean"
,
"valueOf"
,
"(Z)Ljava/lang/Boolean;"
,
"booleanValue"
,
"()Z"
)
{}
friend
JniClass
<
Bool
>
;
friend
JniClass
<
Bool
>
;
friend
Primitive
<
Bool
,
bool
,
jboolean
>
;
friend
Primitive
<
Bool
,
bool
,
jboolean
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallBooleanMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallBooleanMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -92,7 +92,7 @@ namespace djinni
...
@@ -92,7 +92,7 @@ namespace djinni
I8
()
:
Primitive
(
"java/lang/Byte"
,
"valueOf"
,
"(B)Ljava/lang/Byte;"
,
"byteValue"
,
"()B"
)
{}
I8
()
:
Primitive
(
"java/lang/Byte"
,
"valueOf"
,
"(B)Ljava/lang/Byte;"
,
"byteValue"
,
"()B"
)
{}
friend
JniClass
<
I8
>
;
friend
JniClass
<
I8
>
;
friend
Primitive
<
I8
,
int8_t
,
jbyte
>
;
friend
Primitive
<
I8
,
int8_t
,
jbyte
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallByteMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallByteMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -104,7 +104,7 @@ namespace djinni
...
@@ -104,7 +104,7 @@ namespace djinni
I16
()
:
Primitive
(
"java/lang/Short"
,
"valueOf"
,
"(S)Ljava/lang/Short;"
,
"shortValue"
,
"()S"
)
{}
I16
()
:
Primitive
(
"java/lang/Short"
,
"valueOf"
,
"(S)Ljava/lang/Short;"
,
"shortValue"
,
"()S"
)
{}
friend
JniClass
<
I16
>
;
friend
JniClass
<
I16
>
;
friend
Primitive
<
I16
,
int16_t
,
jshort
>
;
friend
Primitive
<
I16
,
int16_t
,
jshort
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallShortMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallShortMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -116,7 +116,7 @@ namespace djinni
...
@@ -116,7 +116,7 @@ namespace djinni
I32
()
:
Primitive
(
"java/lang/Integer"
,
"valueOf"
,
"(I)Ljava/lang/Integer;"
,
"intValue"
,
"()I"
)
{}
I32
()
:
Primitive
(
"java/lang/Integer"
,
"valueOf"
,
"(I)Ljava/lang/Integer;"
,
"intValue"
,
"()I"
)
{}
friend
JniClass
<
I32
>
;
friend
JniClass
<
I32
>
;
friend
Primitive
<
I32
,
int32_t
,
jint
>
;
friend
Primitive
<
I32
,
int32_t
,
jint
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallIntMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallIntMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -128,7 +128,7 @@ namespace djinni
...
@@ -128,7 +128,7 @@ namespace djinni
I64
()
:
Primitive
(
"java/lang/Long"
,
"valueOf"
,
"(J)Ljava/lang/Long;"
,
"longValue"
,
"()J"
)
{}
I64
()
:
Primitive
(
"java/lang/Long"
,
"valueOf"
,
"(J)Ljava/lang/Long;"
,
"longValue"
,
"()J"
)
{}
friend
JniClass
<
I64
>
;
friend
JniClass
<
I64
>
;
friend
Primitive
<
I64
,
int64_t
,
jlong
>
;
friend
Primitive
<
I64
,
int64_t
,
jlong
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallLongMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallLongMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -140,7 +140,7 @@ namespace djinni
...
@@ -140,7 +140,7 @@ namespace djinni
F32
()
:
Primitive
(
"java/lang/Float"
,
"valueOf"
,
"(F)Ljava/lang/Float;"
,
"floatValue"
,
"()F"
)
{}
F32
()
:
Primitive
(
"java/lang/Float"
,
"valueOf"
,
"(F)Ljava/lang/Float;"
,
"floatValue"
,
"()F"
)
{}
friend
JniClass
<
F32
>
;
friend
JniClass
<
F32
>
;
friend
Primitive
<
F32
,
float
,
jfloat
>
;
friend
Primitive
<
F32
,
float
,
jfloat
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallFloatMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallFloatMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
@@ -152,7 +152,7 @@ namespace djinni
...
@@ -152,7 +152,7 @@ namespace djinni
F64
()
:
Primitive
(
"java/lang/Double"
,
"valueOf"
,
"(D)Ljava/lang/Double;"
,
"doubleValue"
,
"()D"
)
{}
F64
()
:
Primitive
(
"java/lang/Double"
,
"valueOf"
,
"(D)Ljava/lang/Double;"
,
"doubleValue"
,
"()D"
)
{}
friend
JniClass
<
F64
>
;
friend
JniClass
<
F64
>
;
friend
Primitive
<
F64
,
double
,
jdouble
>
;
friend
Primitive
<
F64
,
double
,
jdouble
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
noexcept
{
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallDoubleMethod
(
j
,
method
);
const
auto
result
=
jniEnv
->
CallDoubleMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
jniExceptionCheck
(
jniEnv
);
return
result
;
return
result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment