mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
no message
[SVN r18056]
This commit is contained in:
@@ -8,6 +8,8 @@ struct C
|
||||
int value;
|
||||
};
|
||||
|
||||
boost::shared_ptr<C> NewC() { return boost::shared_ptr<C>( new C() ); }
|
||||
|
||||
struct D
|
||||
{
|
||||
boost::shared_ptr<C> Get() { return ptr; }
|
||||
@@ -16,5 +18,5 @@ private:
|
||||
boost::shared_ptr<C> ptr;
|
||||
};
|
||||
|
||||
std::auto_ptr<D> New() { return std::auto_ptr<D>( new D() ); }
|
||||
std::auto_ptr<D> NewD() { return std::auto_ptr<D>( new D() ); }
|
||||
}
|
||||
|
||||
@@ -2,4 +2,5 @@ C = Class('smart_ptr::C', 'smart_ptr.h')
|
||||
use_shared_ptr(C)
|
||||
D = Class('smart_ptr::D', 'smart_ptr.h')
|
||||
use_auto_ptr(D)
|
||||
Function('smart_ptr::New', 'smart_ptr.h')
|
||||
Function('smart_ptr::NewC', 'smart_ptr.h')
|
||||
Function('smart_ptr::NewD', 'smart_ptr.h')
|
||||
|
||||
@@ -7,7 +7,7 @@ set PYTHON_ROOT=c:/python
|
||||
set STLPORT_ROOT=d:/programming/libraries/stlport-4.5.3
|
||||
set PYSTE_FILE_DIR=%@PATH[%PYSTE_FILE]
|
||||
|
||||
python ../src/pyste.py -I%PYSTE_FILE_DIR --out=%MODULE_NAME.cpp --module=%MODULE_NAME %PYSTE_FILE
|
||||
python ../src/pyste.py -I%PYSTE_FILE_DIR -I%BOOST_ROOT/boost --out=%MODULE_NAME.cpp --module=%MODULE_NAME %PYSTE_FILE
|
||||
|
||||
icl /nologo /LD /GR /GX -I%PYSTE_FILE_DIR -I%STLPORT_ROOT/stlport -I%BOOST_ROOT/boost -I%PYTHON_ROOT/include %MODULE_NAME.cpp /link /libpath:%PYTHON_ROOT/libs /libpath:%BOOST_ROOT/lib /libpath:%STLPORT_ROOT/lib boost_python.lib
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import unittest
|
||||
import os
|
||||
|
||||
class BasicExampleTest(unittest.TestCase):
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ call build_pyste_nt templates ../example/templates.pyste
|
||||
call build_pyste_nt virtual ../example/virtual.pyste
|
||||
call build_pyste_nt wrappertest ../example/wrappertest.pyste
|
||||
call build_pyste_nt unions ../example/unions.pyste
|
||||
call build_pyste_nt virtual2 ../example/virtual2.pyste
|
||||
call build_pyste_nt smart_ptr ../example/smart_ptr.pyste
|
||||
|
||||
|
||||
runtests.py
|
||||
|
||||
Reference in New Issue
Block a user