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

JS Bindings: Enhance binding macros to support different kinds of functions #1198

Merged
merged 3 commits into from
May 14, 2021

Conversation

frericp
Copy link
Collaborator

@frericp frericp commented May 12, 2021

This PR adds support for static class functions, global utility functions, and functions that deal with raw pointers.

The current BIND_FUNC macro has been renamed to BIND_MEMBER_FUNC.

FYI @muenstc @sdunkel @kohakukun

Update: #1184

@@ -13,256 +13,338 @@ std::vector<myClass> arrayToVec(myClass *arr, int size)

// Binding helpers
Copy link
Collaborator Author

@frericp frericp May 12, 2021

Choose a reason for hiding this comment

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

The simple BIND_FUNC_X_Y macros haven't been changed, just renamed. So most of the changes in this file can be ignored. Only the macros that carry out the actual work (formerly BIND_FUNC_X, now BIND_X) have been modified. Furthermore, new macros for static and global functions have been introduced, together with their _RAW_PTR version.

Copy link
Collaborator

@ashwinbhat ashwinbhat left a comment

Choose a reason for hiding this comment

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

LGTM

@bernardkwok bernardkwok linked an issue May 14, 2021 that may be closed by this pull request
@sdunkel sdunkel merged commit 5fd1b29 into adsk_contrib/dev May 14, 2021
@sdunkel sdunkel deleted the adsk_contrib/jsBindingMacros branch May 14, 2021 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web Support for MaterialX
4 participants