• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef INTEROP_LOGGING_H
16 #define INTEROP_LOGGING_H
17 
18 #include <cstdio>
19 #include <cstdint>
20 
21 // NOLINTBEGIN
22 
23 // CC-OFFNXT(G.PRE.09) code generation
24 #define LOG(msg) fprintf(stdout, msg "\n");
25 // CC-OFFNXT(G.PRE.09) code generation
26 #define LOGI(msg, ...) fprintf(stdout, msg "\n", __VA_ARGS__);
27 // CC-OFFNXT(G.PRE.09) code generation
28 #define LOGE(msg, ...) fprintf(stderr, msg "\n", __VA_ARGS__);
29 // CC-OFFNXT(G.PRE.09) code generation
30 #define LOGE0(msg) fprintf(stderr, msg "\n");
31 #define LOG_PUBLIC ""
32 
33 #if defined(PANDA_TARGET_WINDOWS)
34 #define INTEROP_API_EXPORT __declspec(dllexport)
35 #else
36 #define INTEROP_API_EXPORT __attribute__((visibility("default")))
37 #endif
38 
39 // NOLINTEND
40 
41 #endif  // INTEROP_LOGGING_H
42