fix: function returns by const value

This commit is contained in:
MihailRis
2024-06-07 15:17:32 +03:00
parent d292ef130c
commit a5dc187481
14 changed files with 41 additions and 28 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ LuaState::LuaState() {
setglobal(LAMBDAS_TABLE);
}
const std::string LuaState::envName(int env) {
std::string LuaState::envName(int env) {
return "_ENV"+util::mangleid(env);
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace lua {
LuaState();
~LuaState();
static const std::string envName(int env);
static std::string envName(int env);
void loadbuffer(int env, const std::string& src, const std::string& file);
int gettop() const;
int pushivec3(lua_Integer x, lua_Integer y, lua_Integer z);