#include <curses.h>
Go to the source code of this file.
#define NoArgNoReturnFunction |
( |
|
X | ) |
|
Value:
{ \
PyCursesInitialised \
return PyCursesCheckERR(
X(), #
X); }
#define NoArgNoReturnVoidFunction |
( |
|
X | ) |
|
#define NoArgOrFlagNoReturnFunction |
( |
|
X | ) |
|
Value:
{ \
int flag = 0; \
PyCursesInitialised \
switch(PyTuple_Size(
args)) { \
case 0: \
return PyCursesCheckERR(
X(), #
X); \
case 1: \
if (!PyArg_ParseTuple(
args,
"i;True(1) or False(0)", &flag)) return NULL; \
if (flag) return PyCursesCheckERR(
X(),
# X); \
else return PyCursesCheckERR(no ## X (), # X); \
default: \
PyErr_SetString(PyExc_TypeError, # X " requires 0 or 1 arguments"); \
return NULL; } }
#define NoArgReturnIntFunction |
( |
|
X | ) |
|
Value:
{ \
PyCursesInitialised \
return PyInt_FromLong((
long)
X()); }
#define NoArgReturnStringFunction |
( |
|
X | ) |
|
Value:
{ \
PyCursesInitialised \
return PyString_FromString(
X()); }
#define NoArgTrueFalseFunction |
( |
|
X | ) |
|
Value:
{ \
PyCursesInitialised \
} \
#define PyCurses_API_pointers 4 |
#define PyCurses_CAPSULE_NAME "_curses._C_API" |
#define PyCursesInitialised {if (! ((int (*)(void))PyCurses_API[2]) () ) return NULL;} |
#define PyCursesInitialisedColor {if (! ((int (*)(void))PyCurses_API[3]) () ) return NULL;} |
#define PyCursesSetupTermCalled {if (! ((int (*)(void))PyCurses_API[1]) () ) return NULL;} |
char* catchall_ERR = "curses function returned ERR" |
|
static |
char* catchall_NULL = "curses function returned NULL" |
|
static |
Copyright 2014 Google Inc. All rights reserved.