Constification: make Stateful::get_state() const, with all other required const-ness added (libs)
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
int do_command (std::string);
|
||||
int do_file (std::string);
|
||||
void collect_garbage ();
|
||||
void collect_garbage () const;
|
||||
void collect_garbage_step (int debt = 0);
|
||||
void tweak_rt_gc ();
|
||||
void sandbox (bool rt_safe = false);
|
||||
|
||||
@@ -72,7 +72,7 @@ LuaState::do_file (std::string fn) {
|
||||
}
|
||||
|
||||
void
|
||||
LuaState::collect_garbage () {
|
||||
LuaState::collect_garbage () const {
|
||||
lua_gc (L, LUA_GCCOLLECT, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user