blob: 1fd529e232085e82bbe925b7364966daf16a9baf [file] [log] [blame]
Junxiao Shi1c93cae2014-12-09 22:52:17 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3from waflib.Configure import conf
4
5OVERRIDE = '''
6class Base
7{
8 virtual void
9 f(int a);
10};
11
12class Derived : public Base
13{
14 virtual void
15 f(int a) override;
16};
17'''
18
19@conf
20def check_override(self):
Alexander Afanasyevce812302015-04-14 14:06:29 -070021 self.check_cxx(msg='Checking for override specifier',
22 fragment=OVERRIDE,
23 define_name='HAVE_CXX_OVERRIDE',
24 features='cxx', mandatory=False)
25
Junxiao Shi1c93cae2014-12-09 22:52:17 -070026def configure(conf):
27 conf.check_override()