moved the define for error() directly into Config.h, removing the dependency on the...
authorLogxen <logxen@hotmail.com>
Wed, 9 May 2012 23:19:36 +0000 (16:19 -0700)
committerLogxen <logxen@hotmail.com>
Wed, 9 May 2012 23:19:36 +0000 (16:19 -0700)
src/libs/Config.h

index 472e7ba..cb7e977 100644 (file)
 #include "libs/Kernel.h"
 #include "libs/utils.h"
 #include "libs/Pin.h"
-#include "error.h" // mbed.h lib
 
+#define error(...) (fprintf(stderr, __VA_ARGS__), exit(1))
 
 using namespace std;
 #include <vector>
 #include <string>
+#include <stdio.h>
 
 #define config_get_checksum        46310
 #define config_set_checksum        55538