Conversation
|
I think it certainly looks simpler without additional free functions |
include/evmc/evmc.h
Outdated
There was a problem hiding this comment.
I think for a 4 byte saving this complicates matters too much for bindings, such as go or rust.
|
Risks:
A more conservative variant is to place the scratchpad after |
|
Update version: Still union is used - this is the easiest way to make sure the scratchpad is aligned memory (fix needed for 32-bit arch). However, using unions still might be not ideal for bindings. Alternatively, we can define scratchpad as |
|
Added the size tests to Rust too. |
|
@chfast how about this PR? The current version seems to be good, at least from the C and Rust perspectives. |
|
Not now. I have some other ideas in this subject. |
The idea behind this is the following: