1
0
mirror of synced 2025-01-19 01:24:15 +01:00

patterns: Fixed namespace of hex::prv:: functions

This commit is contained in:
WerWolv 2023-03-28 10:27:49 +02:00
parent 28b7b4b7f1
commit 06a7b6e446

View File

@ -32,7 +32,7 @@ namespace hex::plugin::builtin {
pl::api::Namespace nsHexPrv = { "builtin", "hex", "prv" };
{
/* get_information() */
ContentRegistry::PatternLanguage::addFunction(nsHexCore, "get_information", FunctionParameterCount::between(1, 2), [](Evaluator *, auto params) -> std::optional<Token::Literal> {
ContentRegistry::PatternLanguage::addFunction(nsHexPrv, "get_information", FunctionParameterCount::between(1, 2), [](Evaluator *, auto params) -> std::optional<Token::Literal> {
std::string category = params[0].toString(false);
std::string argument = params.size() == 2 ? params[1].toString(false) : "";