Macro causes loose identation warning
#1

Hey,

I have made myself a little Benchmarking macro recently, but it is causing loose identation warnings, which is quite annoying. I'd appreciate if someone could explain why that happens, here is the macro:

PHP код:
#define BENCHMARK(%0,%1,%2); \
    
{\
    new 
startTick GetTickCount();\
    for(new 
count 0count < %1count++)\
    {\
        %
0;\
    }\
    new 
endTick GetTickCount();\
    
printf("%s: %dms in %d iterations", %2endTick startTick, %1);\
    } 
If anyone wonders about the first and the last bracket, it is to prevent variable shadowing.

greetings marcel
Reply


Messages In This Thread
Macro causes loose identation warning - by BiosMarcel - 15.01.2017, 13:57
Re: Macro causes loose identation warning - by oMa37 - 15.01.2017, 14:13
Re: Macro causes loose identation warning - by BiosMarcel - 15.01.2017, 14:18
Re: Macro causes loose identation warning - by Lordzy - 15.01.2017, 14:30
Re: Macro causes loose identation warning - by BiosMarcel - 15.01.2017, 14:31
Re: Macro causes loose identation warning - by SyS - 15.01.2017, 14:38
Re: Macro causes loose identation warning - by BiosMarcel - 15.01.2017, 14:39
Re: Macro causes loose identation warning - by Gammix - 15.01.2017, 14:44
Re: Macro causes loose identation warning - by BiosMarcel - 15.01.2017, 14:48
Re: Macro causes loose identation warning - by Gammix - 16.01.2017, 07:12

Forum Jump:


Users browsing this thread: 1 Guest(s)