mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-27 09:00:57 +01:00
32 lines
611 B
C++
32 lines
611 B
C++
/**
|
|
* This file defines interfaces of a dummy library used to test various
|
|
* features of the thunk generator.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
extern "C" {
|
|
|
|
uint32_t GetDoubledValue(uint32_t);
|
|
|
|
|
|
/// Interfaces used to test opaque_type and assume_compatible_data_layout annotations
|
|
|
|
struct OpaqueType;
|
|
|
|
OpaqueType* MakeOpaqueType(uint32_t data);
|
|
uint32_t ReadOpaqueTypeData(OpaqueType*);
|
|
void DestroyOpaqueType(OpaqueType*);
|
|
|
|
union UnionType {
|
|
uint32_t a;
|
|
int32_t b;
|
|
uint8_t c[4];
|
|
};
|
|
|
|
UnionType MakeUnionType(uint8_t a, uint8_t b, uint8_t c, uint8_t d);
|
|
uint32_t GetUnionTypeA(UnionType*);
|
|
|
|
}
|