| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| from waflib.Configure import conf |
| friend class TypeWrapper<T>::Type; |
| def check_friend_typename(self): |
| if self.check_cxx(msg='Checking for friend typename-specifier', |
| fragment=FRIEND_TYPENAME, |
| features='cxx', mandatory=False): |
| self.define('HAVE_CXX_FRIEND_TYPENAME', 1) |
| elif self.check_cxx(msg='Checking for friend typename using wrapper', |
| features='cxx', mandatory=True): |
| self.define('HAVE_CXX_FRIEND_TYPENAME_WRAPPER', 1) |
| conf.check_friend_typename() |