Skip to content
Snippets Groups Projects
Commit 6a6f7b2c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'feature/language' of gitlab.delpinux.fr:code/pugs into feature/language

parents 536f8b6c 8c93a657
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -74,10 +74,14 @@ class BuiltinFunctionEmbedder : public IBuiltinFunctionEmbedder ...@@ -74,10 +74,14 @@ class BuiltinFunctionEmbedder : public IBuiltinFunctionEmbedder
} else { } else {
throw std::runtime_error("unexpected argument types while casting: expecting EmbeddedData"); throw std::runtime_error("unexpected argument types while casting: expecting EmbeddedData");
} }
} else if constexpr (std::is_same_v<Ti_Type, FunctionId> and std::is_same_v<Vi_Type, uint64_t>) { } else if constexpr (std::is_same_v<Ti_Type, FunctionId>) {
if constexpr (std::is_same_v<Vi_Type, uint64_t>) {
std::get<I>(t) = FunctionId{v_i}; std::get<I>(t) = FunctionId{v_i};
throw std::runtime_error( throw std::runtime_error(
"WIP: should get better descriptor, FunctionId should at least refer to the symbol table."); "WIP: should get better descriptor, FunctionId should at least refer to the symbol table.");
} else {
throw std::runtime_error("unexpected argument types while casting: expecting uint64");
}
} else { } else {
std::ostringstream os; std::ostringstream os;
os << "unexpected argument types while casting " << demangle<Vi_Type>() << " -> " << demangle<Ti_Type>() os << "unexpected argument types while casting " << demangle<Vi_Type>() << " -> " << demangle<Ti_Type>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment