what does those 2 founctions mean ?


void test (void)
{
#if WMOPS
multiCounter[currCounter].Test++;
#endif
}

void move32 (void)
{
#if WMOPS
multiCounter[currCounter].DataMove32++;
#endif
}
What are you having difficulty with? The preprocessor #if ... #endif directives, or the C++ code within those directives?

The more specific you can be about what you don't understand, the less we waste your time and ours explaining the bits you already do understand.
Last edited on
every thing please

WMOPS ??

multiCounter[currCounter].DataMove32++; ??

Last edited on
Hi,
What does those 2 founctions mean ?

You might want to check this sentence for possible English mistakes.

Edit : Oh, nevermind. I've been reported.
Last edited on
WMOPS ??


#if is a preprocesser directive. From context, WMOPS must be some kind of preprocessor variable, that's presumably is defined as either 0, or 1 for different builds. If it's defined as 1 (or any non-zero value), then the code between the #if and #endif is included in the complication. If it's defined as 0, then the code is not included in the compilation.

multiCounter[currCounter].DataMove32++;

From context, this looks as though multiCounter is probably a container or array of objects. currCounter is the index into the container, so multiCounter[currCounter] is one of the members of the container.

DataMove32 must be a data member of that object. The statement increments the value of multiCounter[currCounter].DataMove32.

You should be able to find definitions for multiCounter and its members in your code.
Last edited on
thanks so much @MikeyBoy
You're welcome.
Topic archived. No new replies allowed.