Edit

kc3-lang/angle/src/compiler/preprocessor/new/Macro.cpp

Branch :

  • Show log

    Commit

  • Author : alokp@chromium.org
    Date : 2012-05-21 22:47:20
    Hash : 98d04ec8
    Message : Implemented #define and #undef directives. Review URL: https://codereview.appspot.com/6215072 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1092 736b8ea6-26fd-11df-bfd4-992fa37f6226

  • src/compiler/preprocessor/new/Macro.cpp
  • //
    // Copyright (c) 2011 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #include "Macro.h"
    
    #include "Token.h"
    
    namespace pp
    {
    
    bool Macro::equals(const Macro& other) const
    {
        return (type == other.type) &&
               (name == other.name) &&
               (parameters == other.parameters) &&
               (replacements == other.replacements);
    }
    
    }  // namespace pp