gen_ostream_ops.py fix - ostream operators as inline static

Change-Id: I9688236b06dd167960662b8eecf1a07c93b43fff
This commit is contained in:
Evgeny
2020-09-09 01:44:51 -05:00
vanhempi e9b8de644e
commit c9ed0f067d
+1 -1
Näytä tiedosto
@@ -167,7 +167,7 @@ def gen_cppheader(infilepath, outfilepath, structs_depth):
continue
if len(cppHeader.classes[c]["properties"]["public"])!=0:
if apiname.lower() == 'hip' or apiname.lower() == 'hsa':
f.write("std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n")
f.write("inline static std::ostream& operator<<(std::ostream& out, const " + c + "& v)\n")
f.write("{\n")
f.write(" roctracer::" + apiname.lower() + "_support::operator<<(out, '{');\n")
if structs_depth != -1: