From 602da5a93ca3225b87415e6ed362d5130b4004b3 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 19 Jul 2014 17:54:36 +0000 Subject: [PATCH] Enable DXX_ALWAYS_ERROR_FUNCTION wherever lambdas are allowed --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 7bfabee9d..931ad6c71 100644 --- a/SConstruct +++ b/SConstruct @@ -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): """