alokp@chromium.org | 3a01d1b | 2011-08-30 05:10:53 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2011 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | #include "Macro.h" |
| 8 | |
alokp@chromium.org | 98d04ec | 2012-05-21 22:47:20 +0000 | [diff] [blame] | 9 | #include "Token.h" |
alokp@chromium.org | 3a01d1b | 2011-08-30 05:10:53 +0000 | [diff] [blame] | 10 | |
| 11 | namespace pp |
| 12 | { |
| 13 | |
Zhenyao Mo | d526f98 | 2014-05-13 14:51:19 -0700 | [diff] [blame^] | 14 | bool Macro::equals(const Macro &other) const |
alokp@chromium.org | 3a01d1b | 2011-08-30 05:10:53 +0000 | [diff] [blame] | 15 | { |
alokp@chromium.org | 98d04ec | 2012-05-21 22:47:20 +0000 | [diff] [blame] | 16 | return (type == other.type) && |
| 17 | (name == other.name) && |
| 18 | (parameters == other.parameters) && |
| 19 | (replacements == other.replacements); |
alokp@chromium.org | 3a01d1b | 2011-08-30 05:10:53 +0000 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | } // namespace pp |
| 23 | |