blob: 53449398ed4093e1bf0c4ca384fd286a4a6bb6b6 [file] [log] [blame]
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +00001# -*- 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):
21 if self.check_cxx(msg='Checking for override specifier',
22 fragment=OVERRIDE,
23 features='cxx', mandatory=False):
24 self.define('HAVE_CXX_OVERRIDE', 1)
25
26def configure(conf):
27 conf.check_override()