From ce1f37aae46ea95020d7b865f7a80e8abdfad0d8 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 29 Jan 2005 21:21:05 +0000 Subject: initial commit into repository --- (limited to 'include/sitecing/magic.h') diff --git a/include/sitecing/magic.h b/include/sitecing/magic.h new file mode 100644 index 0000000..4802fcc --- a/dev/null +++ b/include/sitecing/magic.h @@ -0,0 +1,63 @@ +#ifndef __SITECING_MAGIC_H +#define __SITECING_MAGIC_H + +/** + * @file + * @brief The magic numbers globally defined. + */ + +namespace sitecing { + + /** + * The magic numbers enumeration. + */ + enum { + /** + * There is no magic. + */ + __magic_none = 0, + /** + * Here is where user-defined magic starts. + */ + __user_magical_numbers_start = 1, + /** + * Here is where site-C-ing defined magic starts. + */ + __sitecing_magical_numbers_start = 0x8000, + /** + * The compiler error occured. The parameters passed are: + * + * char *message, char *root_source, char *root_intermediate, char *root_so, char *component + */ + __magic_compile_error, + /** + * The preprocessor error occured. The parameters passed are: + * + * char *message, char *root_source, char *root_intermediate, char *root_so, char *component, + * int line_number + */ + __magic_preprocess_error, + /** + * Exception caught while executing the component. The parameters passed are: + * + * char *message, char *root_source, char *root_intermediate, char *root_so, char *component, + * const exception *exception_caught + */ + __magic_generic_exception, + /** + * The component called as an action handler. The parameters passed are: + * + * char *root_source, char *root_intermediate, char *root_so, list* args + */ + __magic_action, + /** + * The component called as an HTTP status handler. The parameters passed are: + * + * char *root_source, char *root_intermediate, char *root_so, char *component, + * const http_status *http_status_caught + */ + __magic_http_status + }; +} + +#endif /* __SITECING_MAGIC_H */ -- cgit v0.9.0.2