openMSX
Macros | Functions
outer.hh File Reference
#include <bit>
#include <cstddef>
Include dependency graph for outer.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OUTER(type, member)
 

Functions

template<typename T >
int checkInvalidOuterUsage (T)
 

Macro Definition Documentation

◆ OUTER

#define OUTER (   type,
  member 
)
Value:
(checkInvalidOuterUsage<const decltype(std::declval<type&>().member)*>(this), \
*std::bit_cast<type*>(std::bit_cast<uintptr_t>(this) - offsetof(type, member)))

Definition at line 42 of file outer.hh.

Function Documentation

◆ checkInvalidOuterUsage()

template<typename T >
int checkInvalidOuterUsage ( )

Definition at line 40 of file outer.hh.