Allow chaining calls to add_class_maker()

This commit is contained in:
King_DuckZ 2022-05-14 18:06:35 +02:00
commit 036dd57524
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,7 @@ namespace wren {
ClassManager();
~ClassManager() noexcept;
void add_class_maker (std::string_view module_name, std::string_view class_name, make_foreign_class_t);
ClassManager& add_class_maker (std::string_view module_name, std::string_view class_name, make_foreign_class_t);
foreign_class_t make_class(std::string_view module_name, std::string_view class_name);
private: