#define DEFINE_STAT(Stat) \ struct FThreadSafeStaticStat<FStat_##Stat> StatPtr_##Stat;
The above line is taken from Unreal 4, and I know that I can talk about this in unrealistic forums, but I think this is a general C ++ question that requires to be asked.
I understand that the first line defines the macro, however I am not very versed in prefabricated shenanigans in C ++, and therefore I got lost there. Logic tells me that the backslash means that the declaration continues on the next line.
FThreadSafeStaticStat is a bit like a template, but there # happens there and syntax that I have never seen before in C ++
Can someone tell me what that means? I understand that you may not have access to Unreal 4, but this is just syntax that I don't understand.
c ++ c c-preprocessor concatenation
DavidColson Apr 09 '14 at 22:21 2014-04-09 22:21
source share