mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 17:12:22 +00:00
Modified Files:
boost/python/detail:
base_object.hpp - Changed template parameter to MixedCase
cast.hpp - Killed off unused downcast_traits<>
functions.hpp - Added commentary
libs/python/src
functions.cpp, types.cpp - Added comments
tools/build
TODO.txt - updated
allyourbase.jam - fixed a nasty typo which caused all kinds of bugs
boost-base.jam - changes to support the use of command files
intel-win32-tools.jam -
A feeble attempt at allowing intel to work without prior tool setup. More work needed
msvc-tools.jam - A first cut at command file support
tools/build/jam_src
jam.h - Fixed MAXLINE for NT
[SVN r11489]
This commit is contained in:
@@ -24,6 +24,11 @@ namespace {
|
||||
|
||||
using detail::type_object_base;
|
||||
|
||||
// Define a family of forwarding functions that can be calle from a
|
||||
// PyTypeObject's slots. These functions dispatch through a (virtual) member
|
||||
// function pointer in the type_object_base, and handle exceptions in a
|
||||
// uniform way, preventing us from having to rewrite the dispatching code over
|
||||
// and over.
|
||||
PyObject* call(PyObject* obj, PyObject* (type_object_base::*f)(PyObject*) const)
|
||||
{
|
||||
try
|
||||
@@ -154,6 +159,10 @@ namespace {
|
||||
|
||||
extern "C" {
|
||||
|
||||
//
|
||||
// These functions actually go into the type object's slots, and dispatch to the
|
||||
// "call" wrappers defined above.
|
||||
//
|
||||
static PyObject* do_instance_repr(PyObject* obj)
|
||||
{
|
||||
return call(obj, &type_object_base::instance_repr);
|
||||
|
||||
Reference in New Issue
Block a user