diff options
author | starkos <none@none> | 2009-03-26 02:04:32 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-03-26 02:04:32 +0300 |
commit | 0776e56996fa3f25d4f746bd05e3b6badc339644 (patch) | |
tree | ea6684aac212f4e1ec9fe879f7067e90a090f66a /src/base/globals.lua | |
parent | d61caeb2c8758558969876e1d507d3f73efbfc31 (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.lua | 25 |
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. |