This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

unrecognized #pragma save

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

Parents Reply Children
  • #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.