μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions
pybind11_tests.h File Reference
#include <pybind11/eval.h>
#include <pybind11/pybind11.h>
Include dependency graph for pybind11_tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  test_initializer
 
struct  UnregisteredType
 Dummy type which is not exported anywhere – something to trigger a conversion error. More...
 
class  UserType
 A user-defined type which is exported and can be used by any test. More...
 
class  IncType
 Like UserType, but increments value on copy for quick reference vs. copy tests. More...
 
union  IntFloat
 A simple union for basic testing. More...
 
struct  RValueCaster
 Custom cast-only type that casts to a string "rvalue" or "lvalue" depending on the cast context. More...
 
class  type_caster< RValueCaster >
 

Macros

#define TEST_SUBMODULE(name, variable)
 

Functions

template<typename F >
void ignoreOldStyleInitWarnings (F &&body)
 

Macro Definition Documentation

◆ TEST_SUBMODULE

#define TEST_SUBMODULE (   name,
  variable 
)
Value:
void test_submodule_##name(py::module_ &); \
test_initializer name(#name, test_submodule_##name); \
void test_submodule_##name(py::module_ &(variable))
Annotation for function names.
Definition: attr.h:47

Definition at line 17 of file pybind11_tests.h.

Function Documentation

◆ ignoreOldStyleInitWarnings()

template<typename F >
void ignoreOldStyleInitWarnings ( F &&  body)

Definition at line 75 of file pybind11_tests.h.