x86_64: add static assert verifying memory layout

pull/25/head
Ariadne Conill 2021-01-08 02:56:45 -07:00
parent 78e880a29f
commit 638770cfd0
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#include <stddef.h>
#ifndef LIBUCONTEXT_BITS_H
#define LIBUCONTEXT_BITS_H

View File

@ -20,6 +20,7 @@
extern void libucontext_trampoline(void);
_Static_assert(offsetof(libucontext_ucontext_t, uc_mcontext.gregs) == MCONTEXT_GREGS, "MCONTEXT_GREGS is invalid");
void
libucontext_makecontext(libucontext_ucontext_t *ucp, void (*func)(void), int argc, ...)