sol2/examples/source/wip/lua_inheritance.cpp

20 lines
423 B
C++
Raw Normal View History

#define SOL_CHECK_ARGUMENTS 1
#include <sol/sol.hpp>
2017-12-26 14:11:09 +08:00
#include "../assert.hpp"
#include <iostream>
int main(int, char*[]) {
std::cout << "=== lua inheritance ===" << std::endl;
sol::state lua;
lua.open_libraries(sol::lib::base);
/* This example is currently under construction.
For inheritance and classes within Lua,
consider using kikito's middleclass
-- https://github.com/kikito/middleclass */
return 0;
}