*/
#include <math.h>
-#include <assert.h>
#include "screenhack.h"
#include "erase.h"
#define SQRT_3 1.73205080756887729352
+#undef assert
+#define assert(EXP) do { if (!((EXP))) abort(); } while(0)
/*-----------------------------------------*/
"*delay: 10000",
"*delay2: 5",
"*showGraph: False",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
#endif
0
st->force_reset = 0;
st->t = 1;
- pattern_del(st->pattern);
+ if (st->pattern != NULL) {
+ pattern_del(st->pattern);
+ }
st->pattern = NULL;
graph_del(st->graph);