about crSET_STATE0 and crSET_STA

aresqi wrote on Tuesday, August 01, 2006:

hello guys

I’m thinking hard to find a way to use only one macro crSET_STATE(xHandle) in macro crQUEUE_SEND instead of using crSET_STATE0 and crSET_STATE1. But I failed.

Do anyone know if there is auto-count macro in C language Or how we can implement it? I think this macro will add 1 each time when we use it. If it’s usable, we can use it instead of __LINE__.


nobody wrote on Friday, August 04, 2006:

Don’t all jump at once :wink: