]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/dtrace-static-probes/main.c
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dtrace-static-probes / main.c
old mode 100755 (executable)
new mode 100644 (file)
index 8a417e9..79ce4eb
@@ -10,7 +10,8 @@ typedef int weirdType2;
 
 int deadwood()
 {
-       BAR_COUNT1(2);
+       if ( BAR_COUNT1_ENABLED() )
+               BAR_COUNT1(2);
        return 0;
 }
 
@@ -19,9 +20,11 @@ int main() {
        int a = 1;
 
        while(a) {
-               FOO_COUNT1(1);
+               if ( FOO_COUNT1_ENABLED() )
+                       FOO_COUNT1(1);
                printf("test\n");
-               BAR_COUNT1(2);
+               if ( BAR_COUNT1_ENABLED() )
+                       BAR_COUNT1(2);
                sleep(1);
        }