summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_debug.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/action/_debug.lua')
-rw-r--r--xmake/scripts/action/_debug.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_debug.lua b/xmake/scripts/action/_debug.lua
index 859191c26..457318222 100644
--- a/xmake/scripts/action/_debug.lua
+++ b/xmake/scripts/action/_debug.lua
@@ -28,6 +28,19 @@ local utils = require("base/utils")
local config = require("base/config")
local platform = require("platform/platform")
+-- need access to the given file?
+function _debug.need(name)
+
+ -- check
+ assert(name)
+
+ -- the accessors
+ local accessors = { config = true, global = true, project = true, platform = true }
+
+ -- need it?
+ return accessors[name]
+end
+
-- done the given config
function _debug.done()