Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Update codegen/include for release-1.0.19 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions api-layer/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,9 @@ def dump(file, indent, depth, element):
if type_tail:
member_type += " " + type_tail

if type_text == "char" and name_tail == "[" and enum_tail == "]":
# member["type"] = "char_array"
# member["size"] = enum_text
if name_tail == "[" and enum_tail == "]":
member["type"] = "fixed_array"
member["base_type"] = "char"
member["base_type"] = type_text
member["size"] = enum_text

elif member_type == "char * const*":
Expand Down Expand Up @@ -3118,7 +3116,7 @@ def get_code_to_substitute_handle(member, instance_string, accessor_prefix):
}
"""

if outputFilename == "xr_generated_overlays.cpp":
if outputFilename.endswith("cpp"):
open(outputFilename, "w").write(source_text)
else:
open(outputFilename, "w").write(header_text)
Expand Down
Loading