pr33735.c

来自「用于进行gcc测试」· C语言 代码 · 共 22 行

C
22
字号
// { dg-do compile }#include <string>typedef struct _ts { } PyThreadState;PyThreadState * Py_NewInterpreter(void);void Py_EndInterpreter(PyThreadState *);class ApplicationError {public:    ApplicationError(std::string errormsg) : errormsg(errormsg)  { }    std::string errormsg;};void run(){    PyThreadState *py_state=__null;    try {        if (!(py_state=Py_NewInterpreter()))            throw ApplicationError("error");    }    catch(ApplicationError e) {        Py_EndInterpreter(py_state);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?