Skip to content

gen-guest-c: flatten optional params into nullable pointers#453

Merged
alexcrichton merged 1 commit intomainfrom
null-optional-params
Dec 12, 2022
Merged

gen-guest-c: flatten optional params into nullable pointers#453
alexcrichton merged 1 commit intomainfrom
null-optional-params

Conversation

@guybedford
Copy link
Copy Markdown
Contributor

This implements #451 as described in that issue, permitting optional parameters to functions to instead be passed as nullable pointers.

The implementation prefixes the parameter name with a maybe_ prefix to ensure there is some visibility in the interface this is happening.

Note this is done for all types including primitive types as being represented in this way.

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