Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,20 @@ IMPLEMENT_MODULE(FCarlaModule, Carla)
// =============================================================================
// -- Implement carla throw_exception ------------------------------------------
// =============================================================================
// ����һ��ͷ�ļ������ڽ���Unreal Engine 4��UE4���ĺ궨�壬�Ա�����ܵĺ��ͻ
// 引入一个头文件,用于禁用Unreal Engine 4UE4)的宏定义,以避免可能的宏冲突
#include <compiler/disable-ue4-macros.h>
// ����Carla���ж�����쳣������ص�ͷ�ļ�
// 引入Carla库中定义的异常处理相关的头文件
#include <carla/Exception.h>
//������һ��ͷ�ļ���������������֮ǰ�����õ�UE4�궨��
//引入另一个头文件,用于重新启用之前被禁用的UE4宏定义
#include <compiler/enable-ue4-macros.h>
// ����C++��׼���е��쳣����ͷ�ļ�
// 引入C++标准库中的异常处理头文件
#include <exception>
// ����һ�������ռ�carla�����ڷ�װCarla��صĴ���
// 定义一个命名空间carla,用于封装Carla相关的代码
namespace carla {
//����һ�������������׳��������쳣
//定义一个函数,用于抛出并处理异常
void throw_exception(const std::exception &e) {
UE_LOG(LogCarla, Fatal, TEXT("Exception thrown: %s"), UTF8_TO_TCHAR(e.what()));
// ����std::terminate()����������ֹ����
// 调用std::terminate()函数立即终止程序
// It should never reach this part.
std::terminate();
}
Expand Down