Enable DXX_ALWAYS_ERROR_FUNCTION wherever lambdas are allowed
This commit is contained in:
parent
66890d16a7
commit
602da5a93c
|
@ -253,10 +253,10 @@ void b(){
|
|||
context.sconf.Define('__attribute_error(M)', '__attribute__((__error__(M)))')
|
||||
else:
|
||||
context.sconf.Define('__attribute_error(M)', self.comment_not_supported)
|
||||
context.sconf.Define('DXX_ALWAYS_ERROR_FUNCTION(F,S)', r'do { \
|
||||
context.sconf.Define('DXX_ALWAYS_ERROR_FUNCTION(F,S)', r'([]() { \
|
||||
void F() __attribute_error(S); \
|
||||
F(); \
|
||||
} while(0)')
|
||||
}())')
|
||||
@_custom_test
|
||||
def check_builtin_constant_p(self,context):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue