Merge with latest development

This commit is contained in:
Jason Perkins 2014-10-24 15:38:12 -04:00
commit a972ab8009
4 changed files with 9 additions and 3 deletions

View File

@ -145,7 +145,7 @@
local i = 0 local i = 0
return function() return function()
i = i + 1 i = i + 1
return act._list[keys[i]] return action._list[keys[i]]
end end
end end

View File

@ -75,6 +75,12 @@ LUALIB_API int luaL_loadfile (lua_State* L, const char* filename)
if (z == OKAY) { if (z == OKAY) {
lua_pushcclosure(L, chunk_wrapper, 2); lua_pushcclosure(L, chunk_wrapper, 2);
} }
else {
lua_pushstring(L, "cannot open ");
lua_pushstring(L, filename);
lua_pushstring(L, ": No such file or directory");
lua_concat(L, 3);
}
return z; return z;
} }

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
cd `dirname $0` && ../bin/debug/premake5 /file=../premake5.lua /scripts=../src $1 $2 $3 test cd `dirname $0` && ../bin/debug/premake5 /file=../premake5.lua /scripts=.. $1 $2 $3 test

View File

@ -1,4 +1,4 @@
@echo off @echo off
pushd "%~dp0" pushd "%~dp0"
..\bin\debug\premake5.exe /scripts=..\src /file=..\premake5.lua %* test ..\bin\debug\premake5.exe /scripts=.. /file=..\premake5.lua %* test
popd popd