next up previous contents
Next: Faster bitwise operators Up: Accessing the mask from Previous: Registering a new type   Contents

Setting and checking mask states

The mask states can be manipulated using the following functions:

$\textstyle \parbox{\linewidth}{
\vspace{\baselineskip}\noindent\texttt{
SpaceM...
... \item[\emph{state\_name}] The name of the state to be set.
\end{description}}}$

The value of the mask variable is changed to turn on the specified state at the point.

$\textstyle \parbox{\linewidth}{
\vspace{\baselineskip}\noindent\texttt{
SpaceM...
...em[\emph{state\_name}] The name of the state to be checked.
\end{description}}}$