diff --git a/staticModule/src/main/cpp/napi_har.h b/staticModule/src/main/cpp/napi_har.h index 3f1fa1400ed80e867c5a05b0729d0b24236b2d12..84d15a739d7454ead9636d845b8139114e3bff35 100644 --- a/staticModule/src/main/cpp/napi_har.h +++ b/staticModule/src/main/cpp/napi_har.h @@ -14,7 +14,6 @@ */ // [Start har_start] -// [Start napi_har_start] // staticModule\src\main\cpp\napi_har.h #ifndef CROSSMODULEREFERENCE_NAPI_HAR_H #define CROSSMODULEREFERENCE_NAPI_HAR_H @@ -24,5 +23,4 @@ void setHarEnv(napi_env env); double harNativeAdd(double a, double b); napi_value harArkTSAdd(double a, double b); #endif //CROSSMODULEREFERENCE_NAPI_HAR_H -// [End napi_har_start] // [End har_start] \ No newline at end of file diff --git a/staticModule/src/main/cpp/napi_har1.h b/staticModule/src/main/cpp/napi_har1.h new file mode 100644 index 0000000000000000000000000000000000000000..8c9cf7ad9c8112819d897d93c9a5300aaa830cf8 --- /dev/null +++ b/staticModule/src/main/cpp/napi_har1.h @@ -0,0 +1,23 @@ +/* +* Copyright (C) 2024 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// [Start napi_har_start] +// staticModule\src\main\cpp\napi_har.h +#ifndef CROSSMODULEREFERENCE_NAPI_HAR_H +#define CROSSMODULEREFERENCE_NAPI_HAR_H +#include +double harNativeAdd(double a, double b); +#endif //CROSSMODULEREFERENCE_NAPI_HAR_H +// [End napi_har_start] \ No newline at end of file