summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/keyword.hpp
blob: 9359892f9caacd0e77ac8091f9e8f31f551ee20d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef EOLIAN_CXX_KEYWORD_HH
#define EOLIAN_CXX_KEYWORD_HH

namespace efl { namespace eolian { namespace grammar {

inline std::string escape_keyword(std::string const& name)
{
  if(name == "delete" || name == "register")
    return "cxx_" + name;
  return name;
}
      
} } }

#endif