00001 #ifndef RPC_IMPLEMENTATION_ONLY_GROUP
00002 #define RPC_IMPLEMENTATION_ONLY_GROUP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "shared_code.h"
00024 #include "shared_code.rh"
00025
00026 #include <basis/guards.h>
00027 #include <basis/packable.h>
00028 #include <win_ext/event_ex.h>
00029 #ifdef DEBUG_RPC
00030 #include <win_ext/debugger.h>
00031 #else
00032 #include <loggers/file_logger.h>
00033 #endif
00034
00035 #include <process.h>
00036
00038
00039
00040
00041 #define LOG(to_print) { \
00042 FUNCTION(func); \
00043 debugger(alert, RPC_DEBUG_METHOD).print(function_name + istring(to_print)); \
00044 }
00045
00047
00048
00049
00050 #define CHECK_CONNECTION \
00051 if (!connected()) deadly_error(class_name(), func, "not connected!")
00052
00054
00055
00056 #define CHECK_LOGIN { \
00057 if (!logged_in()) login(); \
00058 if (!logged_in()) deadly_error(class_name(), func, "not logged in."); \
00059 }
00060
00062
00063
00064 #define KABOOM(to_print) { \
00065 LOG(to_print); \
00066 deadly_error(class_name(), func, istring(to_print).s()); \
00067 }
00068
00070
00071 #endif
00072