diff options
| author | ruki <[email protected]> | 2024-08-22 00:34:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-23 08:14:32 +0800 |
| commit | d19c47eac0a44b0bfbbf2e4ce7cf98713720a245 (patch) | |
| tree | 7dda2c3d769c40aeb9d66efbfff91c7ff3d4d34c /xmake/core/base/option.lua | |
| parent | 84f170de57c8c58d37ccdefed7ad99e6c0c3ae48 (diff) | |
suppress logs
Diffstat (limited to 'xmake/core/base/option.lua')
| -rw-r--r-- | xmake/core/base/option.lua | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index 76dcc633a..8448788c5 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -64,8 +64,6 @@ end -- get the top context function option._context() - - -- the contexts local contexts = option._CONTEXTS if contexts then return contexts[#contexts] @@ -74,29 +72,17 @@ end -- save context function option.save(taskname) - - -- init contexts option._CONTEXTS = option._CONTEXTS or {} - - -- new a context local context = {options = {}, defaults = {}, taskname = taskname} - - -- init defaults if taskname then context.defaults = option.defaults(taskname) or context.defaults end - - -- push this new context to the top stack table.insert(option._CONTEXTS, context) - - -- ok return context end -- restore context function option.restore() - - -- pop it if option._CONTEXTS then table.remove(option._CONTEXTS) end |
