From a2d21f67f901ec34799819ba47b9579ac78bf112 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 23 Nov 2009 14:40:32 +0800 Subject: mesa/es: Generate code for special functions. es_generator.py did not generate code for special functions. They were supposed to be defined elsewhere. But as a result, parameter checking was also skipped. This commit changes the way special functions are called so that parameter checking is always performed. When there is nothing to check, the check functions becomes macros expanding to the real functions, as an optimization. Signed-off-by: Chia-I Wu --- src/mesa/es/main/APIspec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/es/main/APIspec.py') diff --git a/src/mesa/es/main/APIspec.py b/src/mesa/es/main/APIspec.py index 7d27e46e28b..6947f7301cd 100644 --- a/src/mesa/es/main/APIspec.py +++ b/src/mesa/es/main/APIspec.py @@ -133,7 +133,7 @@ class Function(object): if force_skip_desc: self._skip_desc = True else: - self._skip_desc = (self.is_external or func_node.prop("skip_desc") == "true") + self._skip_desc = (func_node.prop("skip_desc") == "true") self._categories = categories -- cgit v1.2.3