replace 'ToRad(X)' with 'X*(PI/180)' wherever you find it in the file except when it is within quotes (" " or when it is within a comment (/* */ or //).
Its directed to the preprocessor, and occurs before the compilation actually begins. Ankan.
It works similar to what u've written but all occurances of the macro are replaced even before compilation. for ex.
if u use ToRad(5) somewhere in ur program that gets replaced by 5*(PI/180). this type of macro function is not allocated any memory as it doesn't exist during compilation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.