1 //------------------------------------------------------------------------------
3 //------------------------------------------------------------------------------
4 // SkyWorks : Copyright 2002 Mark J. Harris and
5 // The University of North Carolina at Chapel Hill
6 //------------------------------------------------------------------------------
7 // Permission to use, copy, modify, distribute and sell this software and its
8 // documentation for any purpose is hereby granted without fee, provided that
9 // the above copyright notice appear in all copies and that both that copyright
10 // notice and this permission notice appear in supporting documentation.
11 // Binaries may be compiled with this software without any royalties or
14 // The author(s) and The University of North Carolina at Chapel Hill make no
15 // representations about the suitability of this software for any purpose.
16 // It is provided "as is" without express or
21 * Implemtation of global utility functions.
23 #include "SkyUtil.hpp"
25 //------------------------------------------------------------------------------
26 // Function : SkyTrace
28 //------------------------------------------------------------------------------
30 * SkyTrace( char* strMsg, ... )
31 * @brief Prints formatted output, debug only.
33 * Includes file and line number information automatically.
35 void SkyTrace( char* strMsg, ... )
37 #if defined(DEBUG) | defined(_DEBUG)
42 va_start(args, strMsg);
43 _vsnprintf( strBuffer, 512, strMsg, args );
46 fprintf(stderr, "[SkyTrace] %s(%d): %s\n",__FILE__, __LINE__, strBuffer);