Files
m2dev-client-src/src/ScriptLib/StdAfx.h
d1str4ught 4be475f111 init
2025-08-18 19:46:48 +02:00

55 lines
1.1 KiB
C++

#pragma once
#include "../eterLib/StdAfx.h"
#include "../eterGrnLib/StdAfx.h"
//#include <crtdbg.h>
#ifdef _DEBUG
#undef _DEBUG
#include <Python-2.7/python.h>
#define _DEBUG
#else
#include <Python-2.7/python.h>
#endif
#include <Python-2.7/node.h>
#include <Python-2.7/grammar.h>
#include <Python-2.7/token.h>
#include <Python-2.7/parsetok.h>
#include <Python-2.7/errcode.h>
#include <Python-2.7/compile.h>
#include <Python-2.7/symtable.h>
#include <Python-2.7/eval.h>
#include <Python-2.7/marshal.h>
#include "PythonUtils.h"
#include "PythonLauncher.h"
#include "PythonMarshal.h"
#include "Resource.h"
void initdbg();
// PYTHON_EXCEPTION_SENDER
class IPythonExceptionSender
{
public:
void Clear()
{
m_strExceptionString = "";
}
void RegisterExceptionString(const char * c_szString)
{
m_strExceptionString += c_szString;
}
virtual void Send() = 0;
protected:
std::string m_strExceptionString;
};
extern IPythonExceptionSender * g_pkExceptionSender;
void SetExceptionSender(IPythonExceptionSender * pkExceptionSender);
// END_OF_PYTHON_EXCEPTION_SENDER