Allow polymorphic object class to handle sol::function

This commit is contained in:
Rapptz 2013-12-03 01:20:31 -05:00
parent 101e80c913
commit a4a4d21376

View File

@ -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;