当前位置: 首页>>代码示例>>C++>>正文


C++ PyMac_PRECHECK函数代码示例

本文整理汇总了C++中PyMac_PRECHECK函数的典型用法代码示例。如果您正苦于以下问题:C++ PyMac_PRECHECK函数的具体用法?C++ PyMac_PRECHECK怎么用?C++ PyMac_PRECHECK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PyMac_PRECHECK函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PyMac_PRECHECK

static PyObject *Fm_SetPreserveGlyph(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    Boolean preserveGlyph;
#ifndef SetPreserveGlyph
    PyMac_PRECHECK(SetPreserveGlyph);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &preserveGlyph))
        return NULL;
    SetPreserveGlyph(preserveGlyph);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
开发者ID:Austin503,项目名称:android-python2.7.3,代码行数:15,代码来源:_Fmmodule.c

示例2: PyMac_PRECHECK

static PyObject *Evt_LMSetKeyRepThresh(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	SInt16 value;
#ifndef LMSetKeyRepThresh
	PyMac_PRECHECK(LMSetKeyRepThresh);
#endif
	if (!PyArg_ParseTuple(_args, "h",
	                      &value))
		return NULL;
	LMSetKeyRepThresh(value);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
开发者ID:Oize,项目名称:pspstacklesspython,代码行数:15,代码来源:_Evtmodule.c

示例3: PyMac_PRECHECK

static PyObject *Res_ResError(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    OSErr _err;
#ifndef ResError
    PyMac_PRECHECK(ResError);
#endif
    if (!PyArg_ParseTuple(_args, ""))
        return NULL;
    _err = ResError();
    if (_err != noErr) return PyMac_Error(_err);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
开发者ID:0xcc,项目名称:python-read,代码行数:15,代码来源:_Resmodule.c

示例4: PyMac_PRECHECK

static PyObject *Icn_DisposeCIcon(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	CIconHandle theIcon;
#ifndef DisposeCIcon
	PyMac_PRECHECK(DisposeCIcon);
#endif
	if (!PyArg_ParseTuple(_args, "O&",
	                      ResObj_Convert, &theIcon))
		return NULL;
	DisposeCIcon(theIcon);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
开发者ID:Oize,项目名称:pspstacklesspython,代码行数:15,代码来源:_Icnmodule.c

示例5: PyMac_PRECHECK

static PyObject *DragObj_DisposeDrag(DragObjObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef DisposeDrag
	PyMac_PRECHECK(DisposeDrag);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = DisposeDrag(_self->ob_itself);
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:15,代码来源:_Dragmodule.c

示例6: PyMac_PRECHECK

static PyObject *Evt_SetEventMask(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    EventMask value;
#ifndef SetEventMask
    PyMac_PRECHECK(SetEventMask);
#endif
    if (!PyArg_ParseTuple(_args, "H",
                          &value))
        return NULL;
    SetEventMask(value);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
开发者ID:0xcc,项目名称:python-read,代码行数:15,代码来源:_Evtmodule.c

示例7: PyMac_PRECHECK

static PyObject *AE_AEObjectInit(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef AEObjectInit
	PyMac_PRECHECK(AEObjectInit);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AEObjectInit();
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
开发者ID:AdminCNP,项目名称:appscript,代码行数:15,代码来源:_AEmodule.c

示例8: PyMac_PRECHECK

static PyObject *TE_LMSetWordRedraw(PyObject *_self, PyObject *_args)
{
    PyObject *_res = NULL;
    UInt8 value;
#ifndef LMSetWordRedraw
    PyMac_PRECHECK(LMSetWordRedraw);
#endif
    if (!PyArg_ParseTuple(_args, "b",
                          &value))
        return NULL;
    LMSetWordRedraw(value);
    Py_INCREF(Py_None);
    _res = Py_None;
    return _res;
}
开发者ID:0xcc,项目名称:python-read,代码行数:15,代码来源:_TEmodule.c

示例9: PyMac_PRECHECK

static PyObject *CmpInstObj_CloseComponent(ComponentInstanceObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
#ifndef CloseComponent
	PyMac_PRECHECK(CloseComponent);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = CloseComponent(_self->ob_itself);
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
开发者ID:JupiterSmalltalk,项目名称:openqwaq,代码行数:15,代码来源:_Cmmodule.c

示例10: PyMac_PRECHECK

static PyObject *AE_AEGetInteractionAllowed(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSErr _err;
	AEInteractAllowed level;
#ifndef AEGetInteractionAllowed
	PyMac_PRECHECK(AEGetInteractionAllowed);
#endif
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = AEGetInteractionAllowed(&level);
	if (_err != noErr) return PyMac_Error(_err);
	_res = Py_BuildValue("b",
	                     level);
	return _res;
}
开发者ID:AdminCNP,项目名称:appscript,代码行数:16,代码来源:_AEmodule.c


注:本文中的PyMac_PRECHECK函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。