/* $info$ tags: thunklibs|fex_thunk_test $end_info$ */ #include #include #include "common/Host.h" #include "api.h" #include "thunkgen_host_libfex_thunk_test.inl" static uint32_t fexfn_impl_libfex_thunk_test_QueryOffsetOf(guest_layout data, int index) { if (index == 0) { return offsetof(guest_layout::type, a); } else { return offsetof(guest_layout::type, b); } } void fex_custom_repack_entry(host_layout& to, const guest_layout& from) { to.data.custom_repack_invoked = 1; } bool fex_custom_repack_exit(guest_layout& to, const host_layout& from) { return false; } EXPORTS(libfex_thunk_test)