Open thirtytwobits opened 1 year ago
There are no other error cases so having an error code will add no new information to the user.
I take that back. There are two error cases: bad alignment and the arena being too small. Does this justify the existence of a separate argument?
I'm struggling to figure out what I'm doing wrong right now so...yes?
Can I name the error code argument after you?
yes
perhaps if you provided a way to query the required minimum size then you can document that the failure is either that or that the pointer was not aligned per O1HEAP_ALIGNMENT.
etc.