User Tools

Site Tools


save_restore_pragmas.htm
Navigation:  Advanced Topics > Legacy Project System Reference >====== Save/Restore #pragmas ====== Previous pageReturn to chapter overviewNext page

The save #pragma saves the entire #pragma state, so you can later restore it with a restore #pragma. The save and restore #pragmas work in a stack-like manner, thus allowing you to nest them. For example:

/*save the #pragma state and enable the interruptconvention*/

#pragma save

#pragma call(interrupt ⇒ on)

/* interrupt functions are specified here */

#pragma restore

There is no limit on the number of saves, except the amount of memory available. These #pragmas may be used in source files or in a project file.

save_restore_pragmas.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1