26 #ifndef __SYNFIG_GENERAL_H
27 #define __SYNFIG_GENERAL_H
31 #include <ETL/stringf>
42 #define _(x) dgettext("synfig",x)
43 #define gettext_noop(x) x
44 #define N_(x) gettext_noop(x)
46 #define dgettext(a,x) (x)
51 #define SYNFIG_COPYRIGHT "Copyright (c) 2001-2005 Robert B. Quattlebaum Jr., Adrian Bentley"
56 #define DEBUGPOINT() synfig::warning(etl::strprintf(__FILE__":"__FUNC__":%d DEBUGPOINT",__LINE__))
57 #define DEBUGINFO(x) synfig::warning(etl::strprintf(__FILE__":"__FUNC__":%d:DEBUGINFO:",__LINE__)+x)
59 #define DEBUGPOINT() synfig::warning(etl::strprintf(__FILE__":%d DEBUGPOINT",__LINE__))
60 #define DEBUGINFO(x) synfig::warning(etl::strprintf(__FILE__":%d:DEBUGINFO:",__LINE__)+x)
78 previous(setlocale(category,NULL)),category(category)
81 setlocale(category, locale);
85 setlocale(category,previous.c_str());
102 virtual bool valid()
const {
return true; }
119 cb(cb),start(start_),end(end_),tot(total),w(end-start)
122 if(!cb || !cb->
valid())
130 virtual bool valid()
const {
return cb != 0; }
144 extern void error(
const char *format,...);
149 extern void warning(
const char *format,...);
154 extern void info(
const char *format,...);