diff options
| author | ruki <[email protected]> | 2022-05-18 00:34:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-18 00:34:51 +0800 |
| commit | 91d8197cef25c656b9de6aa95076c2d37f0206c2 (patch) | |
| tree | b71f3178159be319b1fd40896b0883868becdea7 /xmake/core/sandbox/modules/pairs.lua | |
| parent | 053c31a5582c15fea9fc674ec3a14cccd9057b7e (diff) | |
fix preprocessor flags
Diffstat (limited to 'xmake/core/sandbox/modules/pairs.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/pairs.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/pairs.lua b/xmake/core/sandbox/modules/pairs.lua index 2c82731e2..a1a5a5588 100644 --- a/xmake/core/sandbox/modules/pairs.lua +++ b/xmake/core/sandbox/modules/pairs.lua @@ -30,9 +30,12 @@ function sandbox_pairs(t) end -- wrap table and return iterator + if t == nil then + t = {} + end return function (t, i) return next(t, i) - end, table.wrap(t), nil + end, t, nil end -- load module |
