Skip to content

Conversation

tgschultz
Copy link
Contributor

Since #1109 was merged we cannot be sure that a struct/union will be passed as a pointer. It might be better to implement this fix in the opposite direction: if it is a pointer, pass value.* back into formatType.

Since #1109 was merged we cannot be sure that a struct/union will be passed as a pointer. It might be better to implement this fix in the opposite direction: if it is a pointer, pass `value.*` back into `formatType`.
@andrewrk andrewrk closed this in 820bf05 Aug 20, 2018
@andrewrk
Copy link
Member

I did have to do it the other way because the address of a by-value parameter is not meaningful. I also added basic support for printing structs via reflection. The case when structs have pointers to themselves is not
handled yet. Also enums/unions are not handled yet.

@tgschultz tgschultz deleted the patch-2 branch October 23, 2018 20:00
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