All pastes #77121 Raw Edit

Something

public cpp v1 · immutable
·published 2006-07-02 17:30 UTC
rendered paste body
    //--------------------------------------------------------------------------    extern "C" PyObject* SnakeOutput_getLog(SnakeOutput* self, void *closure)    {        return PyBool_FromLong(self->obj->isLogEnabled());    }    //--------------------------------------------------------------------------    extern "C" PyObject* SnakeOutput_setLog(SnakeOutput* self, PyObject *value, void *closure)    {        int enabled;        if (PyBool_Check(value))        {            if (value == Py_False)            {                self->obj->setLogEnabled(false);            }            else if (value == Py_True)            {                self->obj->setLogEnabled(true);            }        }        else        {        }        Py_RETURN_NONE;    }