FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java4cpp/examples/NativeRunnable/nr.cpp at java4cpp-1.5 · 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
/
examples
/
NativeRunnable
/
nr.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (22 loc) · 817 Bytes
Breadcrumbs
java4cpp
/
examples
/
NativeRunnable
/
nr.cpp
Copy path
File metadata and controls
29 lines (22 loc) · 817 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
22
23
24
25
26
27
28
29
#
include
<
iostream
>
#
include
"
javaforcpp.h
"
namespace
javaforcpp
{
class
NativeRunnableContext
{
//
add any data to store per object
};
void
NativeRunnable::runNative
() {
std::cout <<
"
Ran NativeRunnable::run()
"
<< std::endl;
}
void
NativeRunnable::initContext
(NativeRunnableContext *ctx,
bool
isref) {
std::cout <<
"
Starting NativeRunnable::initContext()
"
<< std::endl;
context =
new
NativeRunnableContext
();
std::cout <<
"
Ran NativeRunnable::initContext()
"
<< std::endl;
}
void
NativeRunnable::deleteContext
() {
std::cout <<
"
Starting NativeRunnable::deleteContext()
"
<< std::endl;
if
(
NULL
!= context) {
delete
context;
}
std::cout <<
"
Ran NativeRunnable::deleteContext()
"
<< std::endl;
}
}
Back
|
FazBrowse Home
|
New Git URL