pybind11.h 432 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "internal/class.h"
  3. namespace pybind11 {
  4. namespace literals {
  5. inline arg operator""_a (const char* c, size_t) { return arg(c); }
  6. } // namespace literals
  7. struct scoped_interpreter {
  8. scoped_interpreter() { interpreter::initialize(); }
  9. ~scoped_interpreter() { interpreter::finalize(); }
  10. };
  11. } // namespace pybind11
  12. // namespace pybind11
  13. #undef PYBIND11_TYPE_IMPLEMENT
  14. #undef PYBIND11_REGISTER_INIT