disco debugging, yay!
This commit is contained in:
parent
f41356cca4
commit
9746ad1ab3
|
@ -3,6 +3,7 @@
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include "wintype.h"
|
#include "wintype.h"
|
||||||
#include "scode.h"
|
#include "scode.h"
|
||||||
|
#include "log.h"
|
||||||
#include "devctxt.h"
|
#include "devctxt.h"
|
||||||
#include "dc_screen.h"
|
#include "dc_screen.h"
|
||||||
#include "ep_init.h"
|
#include "ep_init.h"
|
||||||
|
@ -206,10 +207,13 @@ static int devctxt_init(DevCtxtObject *self, PyObject *args, PyObject *kwds)
|
||||||
static char *kwlist[] = { "type" };
|
static char *kwlist[] = { "type" };
|
||||||
char *type;
|
char *type;
|
||||||
|
|
||||||
|
Log(LDEBUG, "Creating a new DevCtxt object");
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|s", kwlist, &type))
|
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|s", kwlist, &type))
|
||||||
return -1;
|
return -1;
|
||||||
|
Log(LDEBUG,"type argument is '%s'", type);
|
||||||
if (strcmp(type, "screen") == 0)
|
if (strcmp(type, "screen") == 0)
|
||||||
{
|
{
|
||||||
|
Log(LDEBUG, "doing what we expect on screen context");
|
||||||
self->pdctxt = DC_CreateScreenContext();
|
self->pdctxt = DC_CreateScreenContext();
|
||||||
if (!(self->pdctxt))
|
if (!(self->pdctxt))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user