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

Add lua_isvector, luaL_checkvector and luaL_optvector #261

Merged
merged 3 commits into from
Dec 1, 2021

Conversation

petrihakkinen
Copy link
Contributor

No description provided.

VM/include/lua.h Outdated
@@ -129,6 +129,7 @@ LUA_API int lua_isstring(lua_State* L, int idx);
LUA_API int lua_iscfunction(lua_State* L, int idx);
LUA_API int lua_isLfunction(lua_State* L, int idx);
LUA_API int lua_isuserdata(lua_State* L, int idx);
LUA_API int lua_isvector(lua_State* L, int idx);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make more sense for this to be a macro that calls lua_type similar to all other "simple" type checks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're of course right. Somehow I missed those macros. I'll fix it tomorrow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I fixed this up and switched conformance test to use the new function.

@zeux zeux force-pushed the petrih-new-vector-functions branch from 0f5800a to 69bacee Compare December 1, 2021 18:50
@zeux zeux merged commit d2bf287 into luau-lang:master Dec 1, 2021
@petrihakkinen petrihakkinen deleted the petrih-new-vector-functions branch June 13, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants