From 1d041891edec9d99a1922fd7f4a4770b60412cfd Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 19 Jun 2015 16:23:29 +0800 Subject: rebuild the main implementation --- xmake/scripts/action/_debug.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'xmake/scripts/action/_debug.lua') 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() -- cgit v1.3.1