diff -r 77e7acc57f67 -r aec58c99dafc sourcehook/sourcehook.h --- a/sourcehook/sourcehook.h Tue Sep 13 22:16:29 2005 +0000 +++ b/sourcehook/sourcehook.h Fri Sep 23 20:14:10 2005 +0000 @@ -27,7 +27,10 @@ #define SH_GLOB_PLUGPTR g_PLID #endif + #ifdef SH_DEBUG +# include +# include # define SH_ASSERT__(x, info, file, line, func) \ ((printf("SOURCEHOOK DEBUG ASSERTION FAILED:\n %s:%u(%s): %s\n", file, line, func, info), true) ? (abort(), 0) : 0) # define SH_ASSERT(x, info) if (!(x)) SH_ASSERT__(x, info, __FILE__, __LINE__, __FUNCTION__) @@ -184,8 +187,8 @@ int thisptr_offs; //!< This pointer offset }; void *ptr; //!< Pointer to the interface instance - List hooks_pre; //!< A list of pre-hooks - List hooks_post; //!< A list of post-hooks + List hooks_pre; //!< A list of pre-hooks + List hooks_post; //!< A list of post-hooks bool operator ==(void *other) const { return ptr == other; @@ -236,6 +239,8 @@ class ISourceHook { public: + virtual ~ISourceHook() + { } /** * @brief Return interface version */