]> git.saurik.com Git - cycript.git/blobdiff - Filter.sh
Also use CXType walker to for function prototypes.
[cycript.git] / Filter.sh
index 35a15425076f9e67c12293746772dd3ca8be61fa..e3e47fcd738a4f14fe3a953ee3289e16996ff48f 100755 (executable)
--- a/Filter.sh
+++ b/Filter.sh
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
-# Cycript - Optimizing JavaScript Compiler/Runtime
-# Copyright (C) 2009-2015  Jay Freeman (saurik)
+# Cycript - The Truly Universal Scripting Language
+# Copyright (C) 2009-2016  Jay Freeman (saurik)
 
 # GNU Affero General Public License, Version 3 {{{
 #
@@ -53,6 +53,12 @@ function include() {
                     fi
                 done
             done
+        elif [[ ${line} = @else ]]; then
+            if [[ -z ${filter+@} ]]; then
+                unset filter
+            else
+                filter=
+            fi
         elif [[ ${line} = @end ]]; then
             unset filter
         elif [[ ${line} = @include* ]]; then