From: Drutu Bogdan Date: Sat, 18 Dec 2010 13:30:09 +0000 (+0200) Subject: First sources for test build infrastructure X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=2fc7da6ff1b3ca67241e900a60d31d1f6e211d29;hp=6e2f7c6ff11c25271f4660b182dbe9b71ac6cd3c;p=swifty.git First sources for test build infrastructure --- diff --git a/src/lib_swift.c b/src/lib_swift.c new file mode 100644 index 0000000..4ef146a --- /dev/null +++ b/src/lib_swift.c @@ -0,0 +1,18 @@ +#include +#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 index 0000000..e3ce6ee --- /dev/null +++ b/src/lib_swift.h @@ -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 index 0000000..8f9839f --- /dev/null +++ b/src/main.c @@ -0,0 +1,10 @@ +#include +#include +#include "lib_swift.h" + +int main() +{ + f(); + + return 0; +}