patterns: Updated to new API

This commit is contained in:
WerWolv
2023-04-18 10:06:47 +02:00
parent 7ae814f7fb
commit 6c122e5fbe
11 changed files with 28 additions and 24 deletions

View File

@@ -239,7 +239,7 @@ namespace hex {
namespace impl {
using VisualizerFunctionCallback = std::function<void(pl::ptrn::Pattern&, pl::ptrn::Iteratable&, bool, std::span<const pl::core::Token::Literal>)>;
using VisualizerFunctionCallback = std::function<void(pl::ptrn::Pattern&, pl::ptrn::IIterable&, bool, std::span<const pl::core::Token::Literal>)>;
struct FunctionDefinition {
pl::api::Namespace ns;

View File

@@ -16,7 +16,7 @@ namespace hex {
concept has_size = sizeof(T) == Size;
template<typename T>
class Cloneable {
class ICloneable {
public:
[[nodiscard]] virtual std::unique_ptr<T> clone() const = 0;
};

View File

@@ -6,6 +6,10 @@
#include <hex.hpp>
/**
* This macro is used to define all the required entry points for a plugin.
* Name, Author and Description will be displayed in the in the plugin list on the Welcome screen.
*/
#define IMHEX_PLUGIN_SETUP(name, author, description) IMHEX_PLUGIN_SETUP_IMPL(name, author, description)
#define IMHEX_PLUGIN_SETUP_IMPL(name, author, description) \