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

Decide on pointer-star alignment for function return types #247

Open
lhearachel opened this issue Sep 5, 2023 · 1 comment
Open

Decide on pointer-star alignment for function return types #247

lhearachel opened this issue Sep 5, 2023 · 1 comment

Comments

@lhearachel
Copy link
Contributor

lhearachel commented Sep 5, 2023

We already have consensus on pointer-star alignment for variable declarations, e.g.:

Pokemon *mon;
void ZeroMonData(Pokemon *mon);

I don't see any consensus on pointer-star alignment for function return types. Three options:

Pokemon * AllocMonZeroed(u32 heapID);
// vs
Pokemon* AllocMonZeroed(u32 heapID);
// vs
Pokemon *AllocMonZeroed(u32 heapID);
@red031000
Copy link
Member

IMO this (and all pointer star alignments) should be the same as we already decided

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

No branches or pull requests

2 participants