You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for something like {.align: 8.} to override how fields in an object are packed in memory, but couldn't find anything. I'm currently creating some bindings for C library that make heavy use of align().
Example:
type Foo {.align: 8.} = object
x: int
y: int
Or maybe we can reuse the {.packed.} pragma for that.
The text was updated successfully, but these errors were encountered:
I was looking for something like {.align: 8.} to override how fields in an object are packed in memory, but couldn't find anything. I'm currently creating some bindings for C library that make heavy use of align().
Example:
Or maybe we can reuse the {.packed.} pragma for that.
The text was updated successfully, but these errors were encountered: