Skip to content

Commit 9489b3c

Browse files
committed
It builds
1 parent 3ec6ae2 commit 9489b3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/include/pl/api.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespace pl::api {
126126
/**
127127
* @brief A function callback called when a custom built-in type is being instantiated
128128
*/
129-
using TypeCallback = std::function<std::unique_ptr<ptrn::Pattern>(core::Evaluator *, const std::vector<core::Token::Literal> &)>;
129+
using TypeCallback = std::function<std::shared_ptr<ptrn::Pattern>(core::Evaluator *, const std::vector<core::Token::Literal> &)>;
130130

131131
/**
132132
* @brief A type representing a function.

lib/source/pl/core/evaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ namespace pl::core {
352352
}
353353
}
354354

355-
std::shared_ptr<construct_shared_object<pl::ptrn::Pattern> Evaluator>Variable(const std::string &name, const ast::ASTNodeTypeDecl *type, const std::optional<Token::Literal> &value, bool outVariable, bool reference, bool templateVariable, bool constant) {
355+
std::shared_ptr<ptrn::Pattern> Evaluator::createVariable(const std::string &name, const ast::ASTNodeTypeDecl *type, const std::optional<Token::Literal> &value, bool outVariable, bool reference, bool templateVariable, bool constant) {
356356
auto startPos = this->getBitwiseReadOffset();
357357
ON_SCOPE_EXIT { this->setBitwiseReadOffset(startPos); };
358358

0 commit comments

Comments
 (0)