function params' name
Posted: Wed Nov 26, 2014 9:11 am
Hi there,
Something silly occured yesterday.
I wrote this code
and when I compile, I got an error "near *"
while it works with
From what I understood, it seems GCC is getting crazy with all these "enemy" keywords
So, 2 questions :
- is it normal ?
- is there some official C doc which say it's wrong to do it the way I do, so I could fix it the good way ?
Something silly occured yesterday.
I wrote this code
Code: Select all
void getEnemyDistance(enemy *enemy, enemy *enemy2)
while it works with
Code: Select all
void getEnemyDistance(enemy *e, enemy *f)
So, 2 questions :
- is it normal ?
- is there some official C doc which say it's wrong to do it the way I do, so I could fix it the good way ?