mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Remove construction from a filename as it's pretty useless
This commit is contained in:
parent
51f7010363
commit
599673150e
|
@ -66,14 +66,6 @@ public:
|
||||||
global(reg.get<table>(LUA_RIDX_GLOBALS)) {
|
global(reg.get<table>(LUA_RIDX_GLOBALS)) {
|
||||||
lua_atpanic(L.get(), detail::atpanic);
|
lua_atpanic(L.get(), detail::atpanic);
|
||||||
}
|
}
|
||||||
|
|
||||||
state(const std::string& filename):
|
|
||||||
L(luaL_newstate(), lua_close),
|
|
||||||
reg(L.get(), LUA_REGISTRYINDEX),
|
|
||||||
global(reg.get<table>(LUA_RIDX_GLOBALS)) {
|
|
||||||
lua_atpanic(L.get(), detail::atpanic);
|
|
||||||
open_file(filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
void open_libraries(Args&&... args) {
|
void open_libraries(Args&&... args) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user