sgsScope [class]
class sgsScope
This is the class used to minimally save/restore stack state (its size).
If stack is popped too far, it is not restorable.
Variables
SGS_CTX
(=sgs_Context* C
) - the current contextsgs_StkIdx m_stackSize
- required stack size
Constructors
sgsScope( sgs_Context* c )
- initialize scope using current context and its stack size
Methods
bool is_restored()
- check if saved stack size matches the current one