layers: Fix APIDump param generation for Cpp versus C
authorJon Ashburn <jon@lunarg.com>
Tue, 13 Jan 2015 15:38:14 +0000 (08:38 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:06 +0000 (17:58 -0700)
Remanent from the merge of glave_integration.

xgl-layer-generate.py

index a81ee4479b6231c644db472eddb3ec1bf2af50c5..3e2d825e0fb0a6389ab66e8da82ad8dd712f7843 100755 (executable)
@@ -288,7 +288,7 @@ class Subcommand(object):
                     param0_name = proto.params[0].name
                     ret_val = ''
                     stmt = ''
-                    sp_param_dict = {} # Store 'index' func has struct param to print, or an name of binding "Count" param for array to print
+                    cis_param_index = [] # Store 'index' func has struct param to print, or an name of binding "Count" param for array to print
                     create_params = 0 # Num of params at end of function that are created and returned as output values
                     if 'WsiX11CreatePresentableImage' in proto.name:
                         create_params = -2
@@ -399,7 +399,7 @@ class Subcommand(object):
                     param0_name = proto.params[0].name
                     ret_val = ''
                     stmt = ''
-                    cis_param_index = [] # Store list of indices when func has struct params
+                    sp_param_dict = {} # Store list of indices when func has struct params
                     create_params = 0 # Num of params at end of function that are created and returned as output values
                     if 'WsiX11CreatePresentableImage' in proto.name:
                         create_params = -2