diff options
| author | OpportunityLiu <[email protected]> | 2019-07-23 20:09:07 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-23 20:09:07 +0800 |
| commit | e8851355af6b24ad1ddf5545a5056eed7f7b9786 (patch) | |
| tree | 22db165e29018eb8d63ce7b555165fea1a69f7ca | |
| parent | 769878b5089a1c44d425907ab5e891ee3e4a00d0 (diff) | |
c impl for table
| -rw-r--r-- | xmake/core/base/table.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua index 3fc5d92c8..1f3e79add 100644 --- a/xmake/core/base/table.lua +++ b/xmake/core/base/table.lua @@ -21,12 +21,9 @@ -- define module: table local table = table or {} --- clear the table -function table.clear(self) - for k in next, self do - rawset(self, k, nil) - end -end +-- import jit function +table.clear = require("table.clear") +table.new = require("table.new") -- join all objects and tables function table.join(...) |
