home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 275 / DPCS0111DVD.ISO / Toolkit / Audio-Visual / VirtualDub / Source / VirtualDub-1.9.10-src.7z / src / Tessa / source / Context.cpp next >
Encoding:
C/C++ Source or Header  |  2009-09-14  |  334 b   |  15 lines

  1. #include <stdio.h>
  2. #include <stdarg.h>
  3. #include <vd2/Tessa/Context.h>
  4.  
  5. void VDTBeginScopeF(IVDTProfiler *profiler, uint32 color, const char *format, ...) {
  6.     va_list val;
  7.     char buf[256];
  8.  
  9.     va_start(val, format);
  10.     _vsnprintf(buf, sizeof buf, format, val);
  11.     va_end(val);
  12.     buf[255] = 0;
  13.     profiler->BeginScope(color, buf);
  14. }
  15.