-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnr.cpp
More file actions
29 lines (22 loc) · 817 Bytes
/
nr.cpp
File metadata and controls
29 lines (22 loc) · 817 Bytes
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;
}
}