Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-03-26 02:04:32 +0300
committerstarkos <none@none>2009-03-26 02:04:32 +0300
commit0776e56996fa3f25d4f746bd05e3b6badc339644 (patch)
treeea6684aac212f4e1ec9fe879f7067e90a090f66a /src/base/globals.lua
parentd61caeb2c8758558969876e1d507d3f73efbfc31 (diff)
** Merged branches/platforms (r735:741) Added x32 and x64 platform support for VS2005 and 2008
Diffstat (limited to 'src/base/globals.lua')
-rw-r--r--src/base/globals.lua25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/base/globals.lua b/src/base/globals.lua
index 645fdf7..3359e70 100644
--- a/src/base/globals.lua
+++ b/src/base/globals.lua
@@ -89,36 +89,15 @@
--
--- Open an overload of the io.open() function, which will create any missing
--- subdirectories in the filename if "mode" is set to writeable.
---
-
- local builtin_open = io.open
- function io.open(fname, mode)
- if (mode) then
- if (mode:find("w")) then
- local dir = path.getdirectory(fname)
- ok, err = os.mkdir(dir)
- if (not ok) then
- error(err, 0)
- end
- end
- end
- return builtin_open(fname, mode)
- end
-
-
-
---
-- A shortcut for printing formatted output.
--
function printf(msg, ...)
print(string.format(msg, unpack(arg)))
end
+
-
-
+
--
-- An extension to type() to identify project object types by reading the
-- "__type" field from the metatable.