FAForever / FAForever/lua-lang

Add metamethods for bitwise operators and remove `__gc`

未关闭
#5 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
1
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

GPG added metamethods for bitwise operators which I didn't do when I added them. The methods are called
```c
"__band", "__bor", "__bshl", "bshr"
```

They also removed the `__gc` metamethod.

For inspiration only, the implementation here should not necessarily be taken as a reference.
https://github.com/lua/lua/blob/75ea9ccbea7c4886f30da147fb67b693b2624c26/ltm.c#L43

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。