]> git.saurik.com Git - bison.git/blobdiff - data/c++.m4
Add comparison operators for C++ location classes. Discussed at
[bison.git] / data / c++.m4
index 57aee0ceb05a01db7f4b5e3501bb52628a2ab4f6..c8c220c27ef2f0df48d6a122b104191772f5ea06 100644 (file)
@@ -30,6 +30,8 @@ m4_define_default([b4_parser_class_name], [parser])
 m4_define_default([b4_location_type], [location])
 m4_define_default([b4_filename_type], [std::string])
 m4_define_default([b4_namespace], m4_defn([b4_prefix]))
+m4_define_default([b4_define_location_comparison],
+                 m4_if(b4_filename_type, [std::string], [1], [0]))
 
 
 # b4_token_enums(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)