]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Syntax.hpp
Fixed some compilation errors on Mac OS X.
[cycript.git] / ObjectiveC / Syntax.hpp
index 662d1311d2e2c2f09c5b66a6d793834aaa2beb25..f4101fb547783a585de01887b82bdf839ab87ff5 100644 (file)
@@ -1,4 +1,4 @@
-/* Cycript - Remote Execution Server and Disassembler
+/* Cycript - Inlining/Optimizing JavaScript Compiler
  * Copyright (C) 2009  Jay Freeman (saurik)
 */
 
@@ -49,7 +49,7 @@ struct CYSelectorPart :
     CYWord *name_;
     bool value_;
 
-    CYSelectorPart(CYWord *name, bool value, CYSelectorPart *next) :
+    CYSelectorPart(CYWord *name, bool value, CYSelectorPart *next = NULL) :
         CYNext<CYSelectorPart>(next),
         name_(name),
         value_(value)
@@ -136,6 +136,9 @@ struct CYClass {
     {
     }
 
+    virtual ~CYClass() {
+    }
+
     CYExpression *Replace_(CYContext &context);
     virtual void Output(CYOutput &out, CYFlags flags) const;
 };