-
Hi here, may it's a extraneous question. But when I search Intelnet for nearly 7 hours still have no idea so ask for help here. 🙏 I'm trying to build scriptx into Kotlin/native that make it support script loader to my application.
and there is his source code // yvals_core.h internal header (core)
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef _YVALS_CORE_H_
#define _YVALS_CORE_H_
#ifndef _STL_COMPILER_PREPROCESSOR
// All STL headers avoid exposing their contents when included by various
// non-C++-compiler tools to avoid breaking builds when we use newer language
// features in the headers than such tools understand.
#if defined(RC_INVOKED) || defined(Q_MOC_RUN) || defined(__midl)
#define _STL_COMPILER_PREPROCESSOR 0
#else
#define _STL_COMPILER_PREPROCESSOR 1
#endif
#endif // !defined(_STL_COMPILER_PREPROCESSOR)
#if _STL_COMPILER_PREPROCESSOR
// This does not use `_EMIT_STL_ERROR`, as it needs to be checked before we include anything else.
// However, `_EMIT_STL_ERROR` has a dependency on `_CRT_STRINGIZE`, defined in `<vcruntime.h>`.
// Here, we employ the same technique as `_CRT_STRINGIZE` in order to avoid needing to update the line number.
#ifndef __cplusplus
#define _STL_STRINGIZE_(S) #S
#define _STL_STRINGIZE(S) _STL_STRINGIZE_(S)
#pragma message(__FILE__ "(" _STL_STRINGIZE(__LINE__) "): STL1003: Unexpected compiler, expected C++ compiler.")
#error Error in C++ Standard Library usage
#endif // !defined(__cplusplus)
// (maybe enough end here) Iv trans And there is a doc talk about how to interaction c and Kotlin/native. Sorry im a c noob, maybe there are something params ignore by me. Anyway, ty for reading my question. I would appreciate it if I could get an answer. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
cinterop only support c now. I'll try basic jni to scriptx library solution. |
Beta Was this translation helpful? Give feedback.
cinterop only support c now. I'll try basic jni to scriptx library solution.