mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
6c40c559e3
change how type T is gleaned from destructors and constructors in case of new syntax add a hell of a lot more examples, update and clean documentation
20 lines
419 B
C++
20 lines
419 B
C++
#define SOL_CHECK_ARGUMENTS 1
|
|
#include <sol.hpp>
|
|
|
|
#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;
|
|
}
|