aboutsummaryrefslogtreecommitdiffstats
path: root/templates/header_preamble.kte
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2024-08-07 10:19:46 +0300
committerGitHub <noreply@github.com>2024-08-07 10:19:46 +0300
commit99b287dfabffcf92c4ebed727022f2202543d72a (patch)
treed666349a9ca842c69d8ffce2164870a42435777f /templates/header_preamble.kte
parent88bd3eaaa03f5eabb6282848972b74d1d6126380 (diff)
parent5e062adc5dc9754143693333abf181e0db6838b6 (diff)
Merge pull request #1 from IQomit/use_qjniobject
Id Declarations
Diffstat (limited to 'templates/header_preamble.kte')
-rw-r--r--templates/header_preamble.kte27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/header_preamble.kte b/templates/header_preamble.kte
new file mode 100644
index 0000000..c731c3b
--- /dev/null
+++ b/templates/header_preamble.kte
@@ -0,0 +1,27 @@
+@import io.github.landerlyoung.jenny.JteData
+@import io.github.landerlyoung.jenny.Constants
+
+@param jteData: JteData
+
+${Constants.AUTO_GENERATE_NOTICE}
+#pragma once
+
+#include <jni.h>
+#include <assert.h>
+
+@if (jteData.mEnv.configurations.threadSafe)
+#include <atomic>
+#include <mutex>
+@endif
+
+@if (jteData.mEnv.configurations.useJniHelper)
+#include "jnihelper.h"
+@endif
+
+${jteData.mNamespaceHelper.beginNamespace()}
+class ${jteData.mCppClassName} {
+
+public:
+ static constexpr auto FULL_CLASS_NAME = "${jteData.mSlashClassName}";
+
+