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 evmc_is_abi_compatible helper #68

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Add evmc_is_abi_compatible helper #68

merged 1 commit into from
Aug 20, 2018

Conversation

axic
Copy link
Member

@axic axic commented Aug 20, 2018

Depends on #67.

@axic axic requested a review from chfast August 20, 2018 13:46
@axic axic force-pushed the abi-version-helper branch 4 times, most recently from 8beaa15 to 9dc9b9a Compare August 20, 2018 13:56
Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Why this is useful?

@axic
Copy link
Member Author

axic commented Aug 20, 2018

Why this is useful?

Removing the pointer dereferencing from callers. The instance struct can be opaque from a callers perspective if using these helpers.

/**
* Returns true if the instance has a compatible ABI version.
*/
static inline int evmc_has_compatible_abi(struct evmc_instance *instance)
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about how to nicely name this function.

Copy link
Member

Choose a reason for hiding this comment

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

evmc_is_abi_compatible()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed.

@axic axic changed the title Add evmc_has_compatible_abi helper Add evmc_is_abi_compatible helper Aug 20, 2018
@chfast chfast merged commit 36b7976 into master Aug 20, 2018
@chfast chfast deleted the abi-version-helper branch August 20, 2018 14:23
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.

2 participants