mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Allow polymorphic object class to handle sol::function
This commit is contained in:
parent
101e80c913
commit
a4a4d21376
|
@ -23,9 +23,10 @@
|
||||||
#define SOL_OBJECT_HPP
|
#define SOL_OBJECT_HPP
|
||||||
|
|
||||||
#include "table.hpp"
|
#include "table.hpp"
|
||||||
|
#include "function.hpp"
|
||||||
|
|
||||||
namespace sol {
|
namespace sol {
|
||||||
class object : public table {
|
class object : public table, public function {
|
||||||
public:
|
public:
|
||||||
object(lua_State* L, int index = -1): reference(L, index) {}
|
object(lua_State* L, int index = -1): reference(L, index) {}
|
||||||
object() = default;
|
object() = default;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user