diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
| commit | 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch) | |
| tree | 631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.7.2/src/wrap.cpp | |
| parent | 13aaf70af703748fe096e0664c305cd202637ad2 (diff) | |
tagging tags
Diffstat (limited to 'ychat-0.7.2/src/wrap.cpp')
| -rwxr-xr-x | ychat-0.7.2/src/wrap.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ychat-0.7.2/src/wrap.cpp b/ychat-0.7.2/src/wrap.cpp new file mode 100755 index 0000000..b6c8358 --- /dev/null +++ b/ychat-0.7.2/src/wrap.cpp @@ -0,0 +1,40 @@ +#ifndef WRAP_CPP +#define WRAP_CPP + +#include "wrap.h" + +using namespace std; + +//<<* +chat* wrap::CHAT; +#ifdef DATABASE +data* wrap::DATA; +#endif +gcol* wrap::GCOL; +sman* wrap::SMAN; +//*>> + +conf* wrap::CONF; +html* wrap::HTML; +logd* wrap::LOGD; +modl* wrap::MODL; +#ifdef NCURSES +ncur* wrap::NCUR; +#endif +sock* wrap::SOCK; +stats* wrap::STAT; +timr* wrap::TIMR; +dynamic_wrap* wrap::WRAP; + +void +wrap::system_message( string s_message ) +{ +#ifdef NCURSES + wrap::NCUR->print( s_message ); +#endif +#ifdef SERVMSG + cout << s_message << endl; +#endif + wrap::LOGD->log_simple_line( s_message + "\n" ); +} +#endif |
