2024-06-01 15:57:23 -05:00

64 lines
1.2 KiB
C++

#pragma once
#include "../eterLib/StdAfx.h"
#include "../eterGrnLib/StdAfx.h"
#include "../UserInterface/Locale_inc.h"
#ifdef AT
#undef AT // @warme667
#endif
#ifdef _DEBUG
#undef _DEBUG
#include <Python27/Python.h>
#define _DEBUG
#else
#include <Python27/Python.h>
#endif
#include <Python27/node.h>
#include <Python27/grammar.h>
#include <Python27/token.h>
#include <Python27/parsetok.h>
#include <Python27/errcode.h>
#include <Python27/compile.h>
#include <Python27/symtable.h>
#include <Python27/eval.h>
#include <Python27/marshal.h>
#ifdef AT
#undef AT // @warme667
#endif
#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
//martysama0134's 2e58d0b8baeb072acdf3afc4a5d1999f