edits
[iotcloud.git] / version2 / src / C / common.h
index afa511f262e7e6fd360c08a47ca6e3d85920349c..e7b4acd17aec6f61718fd91784f3fe1c2f43aecc 100644 (file)
@@ -4,6 +4,14 @@
 typedef uint32_t uint;
 #define CMEMALLOC ;
 #define model_print printf
+#define ASSERT(expr) \
+       do {                         \
+               if (!(expr)) {                                                      \
+                       fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
+                       /* print_trace(); // Trace printing may cause dynamic memory allocation */ \
+                       exit(EXIT_FAILURE);                                               \
+               }                                                                   \
+       } while (0)
 
 #include "hashset.h"
 #include "vector.h"
@@ -31,19 +39,22 @@ class SlotBuffer;
 class SlotIndexer;
 class Table;
 class TableStatus;
-class ThreeTuple;
 class TimingSingleton;
 class Transaction;
 class TransactionPart;
 class TransactionStatus;
+class Error;
+class Exception;
+class ServerException;
 
-#define ASSERT(expr) \
-       do {                                                                                             \
-               if (!(expr)) {                                                                                                                                                                                                                  \
-                       fprintf(stderr, "Error: assertion failed in %s at line %d\n", __FILE__, __LINE__); \
-                       /* print_trace(); // Trace printing may cause dynamic memory allocation */ \
-                       exit(EXIT_FAILURE);                                                                                                                                                                                             \
-               }                                                                                                                                                                                                                                                                               \
-       } while (0)
-
+//Code to write
+class SecretKeySpec;
+class PBEKeySpec;
+class SecretKey;
+class Mac;
+class SecureRandom;
+class Thread;
+class DataInputStream;
+class URL;
+class Random;
 #endif