• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2022 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
16// Autogenerated file -- DO NOT EDIT!
17
18#ifndef PANDA_RUNTIME_INTRINSICS_H_
19#define PANDA_RUNTIME_INTRINSICS_H_
20
21#include "bridge/bridge.h"
22#include "include/coretypes/class.h"
23#include "include/coretypes/tagged_value.h"
24#include "intrinsics.inl.h"
25
26% Runtime::intrinsics.select { |i| i.has_impl? && i.need_decl }.group_by { |i| i.impl.rpartition('::').first }.each_pair do |ns, group|
27namespace <%= ns %> {
28
29%   group.each do |i|
30%     impl_name = i.impl.rpartition('::').last
31%     if i.private
32#ifndef PANDA_PRODUCT_BUILD
33%     end
34    extern "C" <%= i.impl_signature.ret %> <%= impl_name %>(<%= i.impl_signature.args.join(', ') %>); // NOLINT(readability-named-parameter)
35%     if i.need_abi_wrapper?
36%       impl_name = i.orig_impl.rpartition('::').last
37    <%= i.orig_impl_signature.ret %> <%= impl_name %>(<%= i.orig_impl_signature.args.join(', ') %>); // NOLINT(readability-named-parameter)
38%     end
39%     if i.private
40#endif  // PANDA_PRODUCT_BUILD
41%     end
42%   end
43
44}  // namespace <%= ns %>
45
46% end
47#endif  // PANDA_RUNTIME_INTRINSICS_H_
48