Hello
my compiler v3.21 says
warning: #161D unrecognized #pragma
with RTX_LIB.C Rev.:V3.40 line 49 #pragma save line 53 #pragma restore
compiler v3.40 works but what does pragma save makes. in Help V:V3.40 save and restore is not Documented
is it the same as #pragma push #pragma pop
when yes why it is not used.
thanks
#pragma XXX are directives for your compilator. If it doesn't recognise the instruction, it will just ignore it with no problems in the compilation.
#pragma is a construct for compiler-specific extensions.
So if the compiler warns that it doesn't support a #pragma, you should check what compiler the #pragma was originally intended for, and check the manual for that specific compiler. It is quite possible that your current compiler (in this case older compiler) has a #pragma with similar meaning - just that such #pragma need not exist and if it exists, it is allowed to have a completely different name.