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

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lua/in-lua-extensions/globals.lua')
-rw-r--r--3rdparty/lua/in-lua-extensions/globals.lua45
1 files changed, 0 insertions, 45 deletions
diff --git a/3rdparty/lua/in-lua-extensions/globals.lua b/3rdparty/lua/in-lua-extensions/globals.lua
deleted file mode 100644
index 49fdfb2..0000000
--- a/3rdparty/lua/in-lua-extensions/globals.lua
+++ /dev/null
@@ -1,45 +0,0 @@
---
--- globals.lua
--- Global tables and variables, replacements and extensions to Lua's global functions.
--- Copyright (c) 2002-2009 Jason Perkins and the Premake project
---
-
---
--- "Immediate If" - returns one of the two values depending on the value of expr.
---
-
- function iif(expr, trueval, falseval)
- if (expr) then
- return trueval
- else
- return falseval
- end
- 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.
---
-
- local builtin_type = type
- function type(t)
- local mt = getmetatable(t)
- if (mt) then
- if (mt.__type) then
- return mt.__type
- end
- end
- return builtin_type(t)
- end