Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding math.tointeger definition #532

Merged
merged 3 commits into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased](https://github.com/Kampfkarren/selene/compare/0.25.0...HEAD)
### Added
- Added `table.move`to Lua 5.3 standard library
- Added `table.move` and `math.tointeger` to Lua 5.3 standard library
- Added `bit32.*` functions to Lua 5.2 standard library
- Added `table.pack`, `rawlen` and `package.config` to Lua 5.2 standard library
- Added new [`empty_loop` lint](https://kampfkarren.github.io/selene/lints/empty_loop.html), which will check for empty loop blocks.
Expand Down
4 changes: 4 additions & 0 deletions selene-lib/default_std/lua53.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
base: lua52
globals:
math.tointeger:
args:
- type: number
must_use: true
string.pack:
args:
- type: string
Expand Down