glsl: added slang_oper_num_children() helper
authorBrian Paul <brianp@vmware.com>
Wed, 24 Jun 2009 19:16:49 +0000 (13:16 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000 (13:16 -0600)
src/mesa/shader/slang/slang_compile_operation.h

index c69078b007077fa1810a128fe6ae53ef9cd4878c..06b452d3d9cfce41e5cb7d3333893aadcf5f8307 100644 (file)
@@ -167,6 +167,13 @@ _slang_operation_swap(slang_operation *oper0, slang_operation *oper1);
 extern void
 slang_operation_add_children(slang_operation *oper, GLuint num_children);
 
+
+static INLINE GLuint
+slang_oper_num_children(const slang_operation *oper)
+{
+   return oper->num_children;
+}
+
 static INLINE slang_operation *
 slang_oper_child(slang_operation *oper, GLuint child)
 {