From 7eb00b6d3037a7e30c326b43e23502f777b92eb6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 12 Dec 2007 17:06:16 +0000 Subject: Corrected some issues with the new trace system. It's now working fine. It's backword compatible, and the new features are a lot of fun. Since it uses template functions you can add any new variable types to be formatted. --- src/fstring.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fstring.cpp') diff --git a/src/fstring.cpp b/src/fstring.cpp index f1ddd2c..d278914 100644 --- a/src/fstring.cpp +++ b/src/fstring.cpp @@ -5,6 +5,9 @@ * terms of the license contained in the file LICENSE. */ +#define BU_TRACE +#include "bu/trace.h" + #include "fstring.h" #include "hash.h" @@ -34,3 +37,8 @@ std::basic_ostream& operator<< (std::basic_ostream &os, const Bu::FS return os; } + +template<> void Bu::__tracer_format( const Bu::FString &v ) +{ + printf("(%ld)\"%s\"", v.getSize(), v.getStr() ); +} -- cgit v1.2.3