mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
Renaming files in include directory, creating pybind11/smart_holder.h.
This commit is contained in:
parent
661eeb381c
commit
e96c06e61a
@ -1,10 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "detail/classh_type_casters.h"
|
|
||||||
#include "smart_holder_poc.h"
|
|
||||||
|
|
||||||
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
|
|
||||||
|
|
||||||
using pybindit::memory::smart_holder;
|
|
||||||
|
|
||||||
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
|
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
#include "../cast.h"
|
#include "../cast.h"
|
||||||
#include "../pytypes.h"
|
#include "../pytypes.h"
|
||||||
#include "../smart_holder_poc.h"
|
|
||||||
#include "class.h"
|
#include "class.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "descr.h"
|
#include "descr.h"
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
|
#include "smart_holder_poc.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
@ -15,6 +15,9 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
namespace pybind11 {
|
namespace pybind11 {
|
||||||
|
|
||||||
|
using pybindit::memory::smart_holder;
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
inline std::pair<bool, handle> find_existing_python_instance(void *src_void_ptr,
|
inline std::pair<bool, handle> find_existing_python_instance(void *src_void_ptr,
|
3
include/pybind11/smart_holder.h
Normal file
3
include/pybind11/smart_holder.h
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "detail/smart_holder_type_casters.h"
|
@ -1,5 +1,5 @@
|
|||||||
#include <pybind11/classh.h>
|
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Identical to classh_module_local_2.cpp, except 2 replaced with 1.
|
// Identical to classh_module_local_2.cpp, except 2 replaced with 1.
|
||||||
#include <pybind11/classh.h>
|
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Identical to classh_module_local_1.cpp, except 1 replaced with 2.
|
// Identical to classh_module_local_1.cpp, except 1 replaced with 2.
|
||||||
#include <pybind11/classh.h>
|
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "pybind11/smart_holder_poc.h"
|
#include "pybind11/detail/smart_holder_poc.h"
|
||||||
|
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_MAIN
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "pybind11_tests.h"
|
#include "pybind11_tests.h"
|
||||||
|
|
||||||
#include <pybind11/classh.h>
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "pybind11_tests.h"
|
#include "pybind11_tests.h"
|
||||||
|
|
||||||
#include <pybind11/classh.h>
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "pybind11_tests.h"
|
#include "pybind11_tests.h"
|
||||||
|
|
||||||
#include <pybind11/classh.h>
|
#include <pybind11/smart_holder.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user