But,HI-TROBOT.LK C user manual has this.
What is this function in User manual-->Library function?
It's not a library function. As it said it's a macro. So it requires to include some "time.h" or "delay.h" or
something like that.Macro does not come in magic.
And the thing that start with double underscore in C++ referred to macros which are internal to the
compiler. But it's not a crime to create your own variable with double underscores.
ex - This is the dynamic casting macro that is used by C++ compiler. [they are typically defined in libc or libc++
,they are not even a template library ].
But in this case it says it's a macro. So then from my general C++/C knowledge it won't magically come
without including a include file. [unlike a library call]. The manual should be mentioned about a
header file.Typically it should be <delay.h> ,if I'm lucky.
Doesn't is mentioned anything about a include file ?
case Extreme:
Anyway in the extreme case , it may be a built in macro.Something like __TIME__ , __FILE__ , __LINE__ ,
__COMPILER__ etc. Where they are hardcoded into the preprocessor.
But in here __delay_ms I don't think so this is the case.
EDIT: Dynamic casting is not in C, it's on C++.