-
Notifications
You must be signed in to change notification settings - Fork 135
Add erlang:is_record/2
#1564
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
Add erlang:is_record/2
#1564
Conversation
bettio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes are required.
Also it look something that we really missed in release-0.6, if it doesn't take you too much time I would rebase this on top of release-0.6. In that case let's also update the changelog.
src/libAtomVM/bifs.gperf
Outdated
| erlang:is_pid/1, {.bif.base.type = BIFFunctionType, .bif.bif1_ptr = bif_erlang_is_pid_1} | ||
| erlang:is_reference/1, {.bif.base.type = BIFFunctionType, .bif.bif1_ptr = bif_erlang_is_reference_1} | ||
| erlang:is_tuple/1, {.bif.base.type = BIFFunctionType, .bif.bif1_ptr = bif_erlang_is_tuple_1} | ||
| erlang:is_record/2,{.bif.base.type = BIFFunctionType, .bif.bif2_ptr = bif_erlang_is_record} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: do we know if is_record/3 is used in any context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't come across any usage, I didn't want to add it preemptively.
683621c to
5344799
Compare
bettio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make sure we are compatible with BEAM behavior.
Last, before commiting the fixed version, let's run erlfmt in order to make sure that sources are properly formatted.
|
A number of CI fixes has been made in release-0.6. Let's rebase it on latest release-0.6. |
8f7f9a8 to
8274823
Compare
8274823 to
fe7261d
Compare
bettio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I found a last minute compatibility issue with OTP.
fe7261d to
370559b
Compare
Signed-off-by: Jakub Gonet <jakub.gonet@swmansion.com>
370559b to
1b64297
Compare
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later