#include "objectpool.h"
#include "log.h"
#include <mutex>
#include <string>
Go to the source code of this file.
|
#define | JNIMETHOD(R, N, C, O) JNIEXPORT R JNICALL C##_##O |
|
#define | BEATMUP_ENTER |
|
#define | BEATMUP_CATCH(expr) try expr catch (std::exception& ex) { $pool.rethrowToJava(jenv, ex); } |
|
#define | BEATMUP_OBJ(type, ptr, handle) type* ptr = $pool.getObject<type>(jenv, handle) |
|
#define | BEATMUP_STRING(var) |
|
#define | BEATMUP_OBJ_OR_NULL(t, p, h) BEATMUP_OBJ(t,p,h) |
|
#define | BEATMUP_REFERENCE(jobj, obj) $pool.addJavaReference(jenv, jobj, obj) |
|
#define | BEATMUP_DELETE_REFERENCE(obj) if (obj) $pool.removeJavaReference(jenv, obj) |
|
◆ JNIMETHOD
#define JNIMETHOD |
( |
|
R, |
|
|
|
N, |
|
|
|
C, |
|
|
|
O |
|
) |
| JNIEXPORT R JNICALL C##_##O |
◆ BEATMUP_ENTER
◆ BEATMUP_CATCH
#define BEATMUP_CATCH |
( |
|
expr | ) |
try expr catch (std::exception& ex) { $pool.rethrowToJava(jenv, ex); } |
◆ BEATMUP_OBJ
#define BEATMUP_OBJ |
( |
|
type, |
|
|
|
ptr, |
|
|
|
handle |
|
) |
| type* ptr = $pool.getObject<type>(jenv, handle) |
◆ BEATMUP_STRING
#define BEATMUP_STRING |
( |
|
var | ) |
|
◆ BEATMUP_OBJ_OR_NULL
◆ BEATMUP_REFERENCE
◆ BEATMUP_DELETE_REFERENCE
#define BEATMUP_DELETE_REFERENCE |
( |
|
obj | ) |
if (obj) $pool.removeJavaReference(jenv, obj) |
◆ $pool