M
Mayur K
I tried to include this macro in my code:
#define GET_BITS(NoOfBits,GetInThis) for(TInt i=0,GetInThis =
0x0;i<NoOfBits;i++,ByteData = ByteData << 1,GetInThis = GetInThis <<
1){ if((ByteData & 0x80) == 0x80){ GetInThis = GetInThis|0x01;} }
Sorry for the one big line.
This code gets compiled properly , but is not executing .
Can somebody point any errors in this macro.
Also is for and while i.e. bacsically iteration statements allowed in
macros.
Thanks.
--Mayur K.
#define GET_BITS(NoOfBits,GetInThis) for(TInt i=0,GetInThis =
0x0;i<NoOfBits;i++,ByteData = ByteData << 1,GetInThis = GetInThis <<
1){ if((ByteData & 0x80) == 0x80){ GetInThis = GetInThis|0x01;} }
Sorry for the one big line.
This code gets compiled properly , but is not executing .
Can somebody point any errors in this macro.
Also is for and while i.e. bacsically iteration statements allowed in
macros.
Thanks.
--Mayur K.