normalizing C API: HSA domain

This commit is contained in:
Evgeny
2019-12-30 20:09:41 -06:00
والد 8280f47327
کامیت b82a21056e
6فایلهای تغییر یافته به همراه18 افزوده شده و 9 حذف شده
+2
مشاهده پرونده
@@ -440,6 +440,7 @@ class API_DescrParser:
# generate stream operator
def gen_out_stream(self, n, name, call, struct):
if n == -1:
self.content += '#ifdef __cplusplus\n'
self.content += 'typedef std::pair<uint32_t, hsa_api_data_t> hsa_api_data_pair_t;\n'
self.content += 'inline std::ostream& operator<< (std::ostream& out, const hsa_api_data_pair_t& data_pair) {\n'
self.content += ' const uint32_t cid = data_pair.first;\n'
@@ -483,6 +484,7 @@ class API_DescrParser:
self.content += ' }\n'
self.content += ' return out;\n'
self.content += '}\n'
self.content += '#endif\n'
#############################################################
# main