VapourSynth-llvmexpr
Loading...
Searching...
No Matches
Meta.hpp
Go to the documentation of this file.
1
19
20#ifndef LLVMEXPR_FRONTEND_INFIX2POSTFIX_STDLIB_META_HPP
21#define LLVMEXPR_FRONTEND_INFIX2POSTFIX_STDLIB_META_HPP
22
23#include "LibraryBase.hpp"
24
25namespace infix2postfix::stdlib {
26
27struct Meta {
28 static constexpr std::string_view NAME = "meta";
29
30 // NOLINTNEXTLINE(modernize-avoid-c-arrays,cppcoreguidelines-avoid-c-arrays)
31 static constexpr char CODE_DATA[] = {
32#pragma clang diagnostic push
33#pragma clang diagnostic ignored "-Wc23-extensions"
34#embed "meta.expr"
35#pragma clang diagnostic pop
36 ,
37 0 // null terminator
38 };
39 static constexpr std::string_view CODE = std::string_view(
40 static_cast<const char*>(CODE_DATA), sizeof(CODE_DATA) - 1);
41
42 using dependencies = std::tuple<>;
43
44 static constexpr std::array<ExportedFunction, 5> EXPORTS = {{
45 ExportedFunction{.name = "ASSERT_CONST", .param_count = 3},
46 ExportedFunction{.name = "ERROR", .param_count = 1},
47 ExportedFunction{.name = "JOIN", .param_count = 3},
48 ExportedFunction{.name = "PASTE", .param_count = 2},
49 ExportedFunction{.name = "UNROLL", .param_count = 2},
50 }};
51};
52
53} // namespace infix2postfix::stdlib
54
55#endif // LLVMEXPR_FRONTEND_INFIX2POSTFIX_STDLIB_META_HPP
static constexpr std::string_view NAME
Definition Meta.hpp:28
std::tuple<> dependencies
Definition Meta.hpp:42
static constexpr char CODE_DATA[]
Definition Meta.hpp:31
static constexpr std::string_view CODE
Definition Meta.hpp:39
static constexpr std::array< ExportedFunction, 5 > EXPORTS
Definition Meta.hpp:44