Space Plunder
Loading...
Searching...
No Matches
BaseHelperMacros.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
16#define LOG_MISSING_POINTER(WorldContext, PointerName, ObjectName, bDebuggingMode, Category) \
17if (!bDebuggingMode) { return; } \
18const FString FullMessage = FString::Printf(TEXT("%s not set in %s"), ToCStr(PointerName), ToCStr(ObjectName)); \
19UBaseHelpersBPLib::PrintToLogWithCategory(WorldContext, Category, FullMessage, false, true);
20
29#define LOG_DEBUG_MESSAGE(WorldContext, Message, ObjectName, bDebuggingMode, Category) \
30if (!bDebuggingMode) { return; } \
31const FString FullMessage = FString::Printf(TEXT("%s - in %s"), *Message, *ObjectName); \
32UBaseHelpersBPLib::PrintToLogWithCategory(WorldContext, Category, FullMessage, true, true);
33
34
35// /**
36// *
37// */
38// class BASEHELPERS_API BaseHelperMacros
39// {
40// public:
41// };