Adiciona macros para formatar valores em Real.
[cascardo/declara.git] / lib / util.h
index 758d67b..754f5de 100644 (file)
@@ -71,4 +71,7 @@ static inline int centavos(long long val)
                return (int) (-val % 100LL);
 }
 
+#define FMT_R "R$ %lld,%02d"
+#define R(l) reais(l), centavos(l)
+
 #endif