mirror of
https://github.com/janet-lang/janet
synced 2025-10-29 06:37:41 +00:00
Make JANET_FRAME_SIZE consistent across architectures.
This means unmarshalling fibers should work across arches.
This commit is contained in:
@@ -733,8 +733,9 @@ struct JanetStackFrame {
|
||||
int32_t flags;
|
||||
};
|
||||
|
||||
/* Number of Janets a frame takes up in the stack */
|
||||
#define JANET_FRAME_SIZE ((sizeof(JanetStackFrame) + sizeof(Janet) - 1) / sizeof(Janet))
|
||||
/* Number of Janets a frame takes up in the stack
|
||||
* Should be constant across architectures */
|
||||
#define JANET_FRAME_SIZE 4
|
||||
|
||||
/* A dynamic array type. */
|
||||
struct JanetArray {
|
||||
|
||||
Reference in New Issue
Block a user