From 161105a01288035e53fafab5ab062968532bb296 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 29 Oct 2018 08:45:50 -0500 Subject: [PATCH] lsteamclient: Update generator to clang 7 --- lsteamclient/gen_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 6b7e131d..745accaa 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -195,7 +195,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e for param in list(method.get_children()): if param.kind == clang.cindex.CursorKind.PARM_DECL: if param.type.kind == clang.cindex.TypeKind.POINTER and \ - param.type.get_pointee().kind == clang.cindex.TypeKind.UNEXPOSED: + param.type.get_pointee().kind == clang.cindex.TypeKind.FUNCTIONPROTO: #unspecified function pointer typename = "void *" else: @@ -504,7 +504,7 @@ for sdkver in sdk_versions: if not os.path.isfile(input_name): continue index = clang.cindex.Index.create() - tu = index.parse(input_name, args=['-x', 'c++', '-m32', '-Isteamworks_sdk_%s/' % sdkver, '-I/usr/lib/clang/6.0.1/include/']) + tu = index.parse(input_name, args=['-x', 'c++', '-m32', '-Isteamworks_sdk_%s/' % sdkver, '-I/usr/lib/clang/7.0.0/include/']) diagnostics = list(tu.diagnostics) if len(diagnostics) > 0: