First sources for test build infrastructure
authorDrutu Bogdan <bcristia@adobe.com>
Sat, 18 Dec 2010 13:30:09 +0000 (15:30 +0200)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sat, 2 Apr 2011 07:27:23 +0000 (10:27 +0300)
src/lib_swift.c [new file with mode: 0644]
src/lib_swift.h [new file with mode: 0644]
src/main.c [new file with mode: 0644]

diff --git a/src/lib_swift.c b/src/lib_swift.c
new file mode 100644 (file)
index 0000000..4ef146a
--- /dev/null
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include "lib_swift.h"
+
+
+#ifdef DEBUG
+#define Dprintf(msg,...) printf("[%s]:%d" msg, __FILE__, __LINE__, ##__VA_ARGS__)
+#else
+#define Dprintf(msg,...)                /* do nothing */
+#endif
+
+
+void f() 
+{
+       Dprintf("TESTARE in PLM");
+       
+       printf("Current file name %s\n", __FILE__);
+       printf("Current line %d in file %s\n", __LINE__, __FILE__);
+}
diff --git a/src/lib_swift.h b/src/lib_swift.h
new file mode 100644 (file)
index 0000000..e3ce6ee
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _LIB_SWIFT_
+#define _LIB_SWIFT_
+
+void f();
+
+
+#endif
diff --git a/src/main.c b/src/main.c
new file mode 100644 (file)
index 0000000..8f9839f
--- /dev/null
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "lib_swift.h"
+
+int main()
+{
+       f();
+       
+       return 0;
+}