]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_set.c
PDCLib includes with quotes, not <>.
[pdclib] / opt / nothread / tss_set.c
index feea85d345b80857af5e2eb12444d58ac00f5404..1e8a5eb0ae3ff18115fdc44ba3b1c121e6021ec2 100644 (file)
@@ -1,7 +1,20 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int tss_set(tss_t key, void *val)\r
 {\r
        key.self->value = val;\r
        return thrd_success;\r
-}
\ No newline at end of file
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include "_PDCLIB_test.h"\r
+\r
+/* Tested in tss_get.c */\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif\r