Debian Codegraph @

test cases/common/76 has type/meson.build

raw
1 project('has type', 'c', 'cpp')
2
3 compilers = [meson.get_compiler('c'), meson.get_compiler('cpp')]
4
5 foreach cc : compilers
6 if not cc.has_type('time_t', prefix : '#include<time.h>')
7 error('Did not detect type that exists.')
8 endif
9
10 if cc.has_type('no_time_t', prefix : '#include<time.h>')
11 error('Not existing type found.')
12 endif
13 endforeach