mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-12 10:29:24 +00:00
![Paulo Matos](/assets/img/avatar_default.png)
This follows discussions from #3413. Followup commits add clang-format file, script and blame ignore lists.
33 lines
766 B
C++
33 lines
766 B
C++
/*
|
|
$info$
|
|
tags: thunklibs|fex_thunk_test
|
|
$end_info$
|
|
*/
|
|
|
|
#include <cstddef>
|
|
#include <dlfcn.h>
|
|
|
|
#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<ReorderingType*> data, int index) {
|
|
if (index == 0) {
|
|
return offsetof(guest_layout<ReorderingType>::type, a);
|
|
} else {
|
|
return offsetof(guest_layout<ReorderingType>::type, b);
|
|
}
|
|
}
|
|
|
|
void fex_custom_repack_entry(host_layout<CustomRepackedType>& to, const guest_layout<CustomRepackedType>& from) {
|
|
to.data.custom_repack_invoked = 1;
|
|
}
|
|
|
|
bool fex_custom_repack_exit(guest_layout<CustomRepackedType>& to, const host_layout<CustomRepackedType>& from) {
|
|
return false;
|
|
}
|
|
|
|
EXPORTS(libfex_thunk_test)
|