Mercurial > hg > orthanc-java
diff CodeGeneration/CppNativeSDK.mustache @ 8:26c08ff926a3
added warning about auto-generated files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Oct 2023 11:21:20 +0200 |
parents | c8f19e93ff99 |
children | 15dc698243ac |
line wrap: on
line diff
--- a/CodeGeneration/CppNativeSDK.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/CppNativeSDK.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -22,6 +22,20 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + +#include "JavaBytes.h" +#include "JavaEnvironment.h" +#include "JavaString.h" +#include "OrthancBytes.h" +#include "OrthancString.h" + +#include <orthanc/OrthancCPlugin.h> + +#include <stdexcept> + +extern OrthancPluginContext* context_; + {{#functions}} JNIEXPORT {{return.c_type}} JNI_{{c_function}}(JNIEnv* env, jobject sdkObject{{#class_name}}, jlong self{{/class_name}}{{#args}}, {{c_type}} {{name}}{{/args}}) @@ -159,7 +173,7 @@ {{/functions}} -static void JNI_LoadNatives(std::vector<JNINativeMethod>& methods) +void JNI_LoadNatives(std::vector<JNINativeMethod>& methods) { methods.clear(); {{#functions}}