libexplain  1.4.D001
Data Fields
explain_output_t Struct Reference

#include <output.h>

Data Fields

struct explain_output_vtable_tvtable
int exit_has_been_used

Detailed Description

The explain_output_t struct is used to remember state for the classes that control libexplain's output and exit methods.

Derived classes may choose to add additonal instance variables.

Definition at line 98 of file output.h.


Field Documentation

POSIX and the C standard both say that it should not call 'exit', because the behavior is undefined if 'exit' is called more than once. So we call '_exit' instead of 'exit'.

This important if a libexplain funcion is called by an atexit hander, where exit has been called by libexplain.

Definition at line 114 of file output.h.

The vtable instance variable is used to remember the location if this instance's class's method pointers.

Definition at line 104 of file output.h.


The documentation for this struct was generated from the following file: