home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
taman002.zip
/
TASKMANA.ZIP
/
src
/
kBase.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-04-29
|
1KB
|
55 lines
/* $Id: kBase.h,v 1.1 2000/04/29 19:06:34 stknut Exp $
*
* kBase (kClassLib) - kBase class declaration and some basis stuff.
*
* Copyright (c) 1999-2000 knut st. osmundsen
*
*/
#ifndef _kBase_h_
#define _kBase_h_
/**
*
* @description
* @purpose
* @assums
* @destruct
* @spcana
* @invariant
* @absfun
* @limits
* @maint
* @author knut st. osmundsen
* @valid
* @approval
* @version
* @log
*/
class kBase
{
protected:
/**@cat protected methods */
/*TID beginMemberThread(void(kBase::* pfn)(void), ULONG cbStack); */
};
/* a nice hack to implement beginthread for memberfunctions */
/* put this under "internal functions" in the module you need to start threads in meberfunctions. */
#define MEMBERTHREAD(classname) \
TID _System beginMemberThread(void(classname::* pfn)(void), ULONG cbStack, classname *pthis)
const char *getWindowMsgDescription(ULONG msg);
/*
* KLib fake stuff.
*/
#ifndef USE_KLIB
#define ASSERT(a) ((a) ? TRUE : _assertMsg(#a, __FILE__, __FUNCTION__, __LINE__))
BOOL _assertMsg(const char *pszExpr, const char *pszFile, const char *pszFunction,
ULONG ulLine);
void kDebugLog(char *pszFormat, ...);
#endif
#endif