|
feisty meow concerns codebase
2.140
|


Go to the source code of this file.
Classes | |
| class | basis::enhance_cpp |
| Provides missing language features in C++. More... | |
Namespaces | |
| basis | |
| The guards collection helps in testing preconditions and reporting errors. | |
Macros | |
| #define | DEFINE_CLASS_NAME(objname) |
| Defines the name of a class by providing a couple standard methods. More... | |
| #define | FUNCDEF(func_in) |
| FUNCDEF sets the name of a function (and plugs it into the callstack). More... | |
| #define | BASE_FUNCTION(func) |
| A macro used within the FUNCTION macro to do most of the work. More... | |
| #define | FUNCTION(func) |
| This macro sets up a descriptive variable called "function_name". More... | |
| #define | BASE_INSTANCE_FUNCTION(func) |
| A macro used within the INSTANCE_FUNCTION macro. More... | |
| #define | INSTANCE_FUNCTION(func) |
| A function macro that contains more information. More... | |
| #define | __WHERE__ basis::a_sprintf("%s [line %d]", __FILE__, __LINE__) |
| WHERE is a macro that combines the file and line number macros. More... | |
| #define __WHERE__ basis::a_sprintf("%s [line %d]", __FILE__, __LINE__) |
WHERE is a macro that combines the file and line number macros.
These are available to most compilers as automatically updated macros called FILE and LINE. This macro can be used anywhere an astring can be used and reports the current file name and line number.
Definition at line 91 of file enhance_cpp.h.
| #define BASE_FUNCTION | ( | func | ) |
A macro used within the FUNCTION macro to do most of the work.
Definition at line 62 of file enhance_cpp.h.
| #define BASE_INSTANCE_FUNCTION | ( | func | ) |
A macro used within the INSTANCE_FUNCTION macro.
Definition at line 74 of file enhance_cpp.h.
| #define DEFINE_CLASS_NAME | ( | objname | ) |
Defines the name of a class by providing a couple standard methods.
This provides a virtual function functionality slice for the class name, as well as a static version that can be used when no instances of the class exist yet.
Definition at line 42 of file enhance_cpp.h.
| #define FUNCDEF | ( | func_in | ) |
FUNCDEF sets the name of a function (and plugs it into the callstack).
This macro establishes the function name and should be used at the top of functions that wish to participate in class based logged as well as the callstack tracing capability of hoople. A new variable is created on the stack to track the function's presence until the function exits, at which time the stack will no longer show it as active.
Definition at line 54 of file enhance_cpp.h.
| #define FUNCTION | ( | func | ) |
This macro sets up a descriptive variable called "function_name".
The variable includes the object's name (static_class_name() must be implemented for the current object) and the current function's name within that object (the macro "func" must be defined with that name).
Definition at line 69 of file enhance_cpp.h.
| #define INSTANCE_FUNCTION | ( | func | ) |
A function macro that contains more information.
This macro is similar to FUNCTION but it uses the class's instance_name() method (see root_object). The instance function usually will provide more information about the class.
Definition at line 81 of file enhance_cpp.h.