2017-08-11 15:24:17 +08:00
|
|
|
#define SOL_CHECK_ARGUMENTS 1
|
2018-09-28 13:27:38 +08:00
|
|
|
#include <sol/sol.hpp>
|
2017-08-11 15:24:17 +08:00
|
|
|
|
2017-12-26 14:11:09 +08:00
|
|
|
#include "../assert.hpp"
|
2017-08-11 15:24:17 +08:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
int main(int, char*[]) {
|
2018-03-16 05:16:28 +08:00
|
|
|
std::cout << "=== lua inheritance ===" << std::endl;
|
2017-08-11 15:24:17 +08:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|