#pragma once #include "EterLib/StdAfx.h" #include "EterGrnLib/StdAfx.h" //#include #ifdef _DEBUG #undef _DEBUG #include #define _DEBUG #else #include #endif #include #include #include #include #include #include #include #include #ifdef BYTE #undef BYTE #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