Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/02 10:34
Read: times


 
#19369 - macro problem
Hi all,
I try to convert a function I use in many places to a macro but without any luck.
The function is:
void nop(uint iNumber)
{
while (iNumber--)
_nop_();
}
The macro is:
#define nop(unsigned int iNumber) {while (iNumber--) _nop_();}

When I try to compile I receive the following message "error C304: bad macro parameter list"

P.S. I use the Keil's uVision2 with compiler V6.22.

Can any one help me?

List of 3 messages in thread
TopicAuthorDate
macro problem            01/01/70 00:00      
RE: macro problem            01/01/70 00:00      
RE: macro problem            01/01/70 00:00      

Back to Subject List