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
fb6c37f8
Commit
fb6c37f8
authored
Nov 10, 2015
by
Andrew Twyman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove (minorly) disruptive const
parent
7f31d770
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 @
fb6c37f8
...
...
@@ -81,7 +81,7 @@ namespace djinni
friend
JniClass
<
Bool
>
;
friend
Primitive
<
Bool
,
bool
,
jboolean
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallBooleanMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallBooleanMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -93,7 +93,7 @@ namespace djinni
friend
JniClass
<
I8
>
;
friend
Primitive
<
I8
,
int8_t
,
jbyte
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallByteMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallByteMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -105,7 +105,7 @@ namespace djinni
friend
JniClass
<
I16
>
;
friend
Primitive
<
I16
,
int16_t
,
jshort
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallShortMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallShortMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -117,7 +117,7 @@ namespace djinni
friend
JniClass
<
I32
>
;
friend
Primitive
<
I32
,
int32_t
,
jint
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallIntMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallIntMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -129,7 +129,7 @@ namespace djinni
friend
JniClass
<
I64
>
;
friend
Primitive
<
I64
,
int64_t
,
jlong
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallLongMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallLongMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -141,7 +141,7 @@ namespace djinni
friend
JniClass
<
F32
>
;
friend
Primitive
<
F32
,
float
,
jfloat
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallFloatMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallFloatMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
return
result
;
}
...
...
@@ -153,7 +153,7 @@ namespace djinni
friend
JniClass
<
F64
>
;
friend
Primitive
<
F64
,
double
,
jdouble
>
;
static
JniType
unbox
(
JNIEnv
*
jniEnv
,
jmethodID
method
,
jobject
j
)
{
const
auto
result
=
jniEnv
->
CallDoubleMethod
(
j
,
method
);
auto
result
=
jniEnv
->
CallDoubleMethod
(
j
,
method
);
jniExceptionCheck
(
jniEnv
);
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