]> Dogcows Code - chaz/rasterize/blobdiff - common.h
add scene lighting constructs; real stdin support
[chaz/rasterize] / common.h
index dd6f034bc9171fa9dd67e5d73d52e0ef7550de13..172b8af5507fd700766cf071b606bf05c9aeb7d9 100644 (file)
--- a/common.h
+++ b/common.h
@@ -15,6 +15,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "config.h"
+
 
 /*
  * Define a keyword for use while defining small and fast functions.
@@ -132,11 +134,16 @@ int imax(int a, int b)
  * an error condition and an abort(3) occurs.
  * return.
  */
+#if VERBOSITY >= 1
 #define TRY_DO(L, K, ARGS...) \
 printf("* " L "... ", ##ARGS); \
 fflush(stdout); \
 if ((K) == 0) printf("done!\n"); \
 else abort()
+#else
+#define TRY_DO(L, K, ARGS...) \
+if ((K) != 0) abort()
+#endif
 
 
 /*
This page took 0.016015 seconds and 4 git commands to generate.