Skip to content

Commit

Permalink
Update hippomocks.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion authored Dec 4, 2024
1 parent b43dee8 commit 3a7ac24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hippomocks/hippomocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ template <typename T>
std::pair<int, int> virtual_index(T t)
{
#if defined(__GNUG__)
#error GNUG
union {
T t;
struct
Expand All @@ -1217,6 +1218,7 @@ std::pair<int, int> virtual_index(T t)
#endif

#elif defined(_MSC_VER)
#error MSC
union {
T t;
struct
Expand All @@ -1231,6 +1233,7 @@ std::pair<int, int> virtual_index(T t)
if (value != -1)
return std::pair<int, int>((int)(conv.u.baseoffs/sizeof(void*)), value);
#elif defined(__EDG__)
#error EDG
union {
T t;
struct {
Expand Down

0 comments on commit 3a7ac24

Please sign in to comment.