mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix: function returns by const value
This commit is contained in:
parent
d292ef130c
commit
a5dc187481
14 changed files with 41 additions and 28 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue