#ifndef _TEK_DEBUG_C #define _TEK_DEBUG_C /* ** $Id: debug.c,v 1.1.1.1 2006/08/20 22:15:20 tmueller Exp $ ** teklib/src/teklib/debug.c - Debug library ** ** Written by Timm S. Mueller ** See copyright notice in teklib/COPYRIGHT */ #include #include #include TLIBAPI TINT TDebugPutS(TSTRPTR s) { TDEBUG_PLATFORM_PUTS(s); return 0; } TLIBAPI TINT TDebugPrintF(TSTRPTR fmt, ...) { static char buf[2048]; TINT numc; va_list args; va_start(args, fmt); numc = vsprintf(buf, fmt, args); va_end(args); buf[sizeof(buf) - 1] = 0; TDEBUG_PLATFORM_PUTS(buf); return numc; } TLIBAPI TINT TDebugFatal(void) { TDEBUG_PLATFORM_FATAL(); return 0; } #endif /* _TEK_DEBUG_C */