FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java4cpp/src/main/resources/cpp_end_class.cpp at java4cpp-1.3 · wshackle/java4cpp · GitHub
wshackle
/
java4cpp
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
9
Code
Issues
1
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
java4cpp
/
src
/
main
/
resources
/
cpp_end_class.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (20 loc) · 853 Bytes
Breadcrumbs
java4cpp
/
src
/
main
/
resources
/
cpp_end_class.cpp
Copy path
File metadata and controls
21 lines (20 loc) · 853 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
%%%% Lines beginning with "//%%%%" are template comments and removed from final output.
//
%%%% "%NAMESPACE%" will be replaced with namespace
//
%%%% "%HEADER%" will be replaced with header
//
%%%% "%HEADER_DEFINE%" will be replaced with defined value used to prevent multiple inclusion
//
%%%% "%CLASS_NAME%" will be replaced with className (not including package)
static
jclass getNew%
CLASS_NAME
%Class() {
jclass clss =
getEnv
()->
FindClass
(
"
%FULL_CLASS_JNI_SIGNATURE%
"
);
if
(
NULL
== clss) {
std::cerr <<
"
Can't find class %FULL_CLASS_JNI_SIGNATURE%
"
<< std::endl;
}
return
clss;
}
static
jclass %
CLASS_NAME
%Class =
NULL
;
static
inline
jclass get%
CLASS_NAME
%Class() {
if
(%
CLASS_NAME
%Class !=
NULL
) {
return
%
CLASS_NAME
%Class;
}
%
CLASS_NAME
%Class = getNew%
CLASS_NAME
%
Class
();
return
%
CLASS_NAME
%Class;
}
Back
|
FazBrowse Home
|
New Git URL