home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
pushpopm.zip
/
pushpopm.h
Wrap
Text File
|
1999-10-26
|
2KB
|
44 lines
;----------------------------------------------------------------------------
; MODULE NAME: PUSHPOPM.H
;
; $Author: Dennis_Bareis $
; $Revision: 1.1 $
; $Date: 26 Oct 1999 17:19:16 $
; $Logfile: E:/DB/PVCS.IT/OS2/PPWIZARD/PUSHPOPM.H_V $
;
; DESCRIPTION: This is a header file for saving and restoring MACRO
; values.
;
; This is useful where you need to "protect" the value
; from a header file you are including. Fairly rare
; requirement, but handy when you need it.
;
; EXAMPLE: #define XXXX Some value
; <$MacroPush Macro='XXXX'> ;;Save it
; #include "File" ;;Header may change value
; <$MacroPop Macro='XXXX'> ;;Restore it
;----------------------------------------------------------------------------
;--- Only include once ----------------------------------
#ifndef VERSION_PUSHPOPM_H
;--- Define the version number of this header file ---
#define VERSION_PUSHPOPM_H 99.289
;--- Include nesting validation code -----------------
#include "nestchk.h"
<$NestingInit Id="PUSHPOPM" DESC="PUSHPOPM.H stack macro tag">
;--- Push Macro --------------------------------------
#define MacroPush \
<$NestingInc Id="PUSHPOPM"> -\
#evaluate '' ^MacroPush = GetMacro('{$Macro}')^ -\
#RexxVar 'MacroPush' PUSH
;--- Pop Macro ---------------------------------------
#define MacroPop \
<$NestingDec Id="PUSHPOPM"> -\
#RexxVar 'MacroPush' POP -\
#evaluate+ '{$Macro}' 'MacroPush'
#endif