Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py @ 1632:9a4c09361f3e
removed annoying warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 10:10:05 +0100 |
parents | f9e3a9c21c0f |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1631:960bb5fcc440 | 1632:9a4c09361f3e |
---|---|
57 index = clang.cindex.Index.create() | 57 index = clang.cindex.Index.create() |
58 | 58 |
59 # PARSE_SKIP_FUNCTION_BODIES prevents clang from failing because of | 59 # PARSE_SKIP_FUNCTION_BODIES prevents clang from failing because of |
60 # undefined types, which prevents compilation of functions | 60 # undefined types, which prevents compilation of functions |
61 tu = index.parse(args.source, | 61 tu = index.parse(args.source, |
62 [ '-DEMSCRIPTEN_KEEPALIVE=__attribute__((annotate("WebAssembly")))' ], | 62 [ '-DEMSCRIPTEN_KEEPALIVE=__attribute__((annotate("WebAssembly")))', |
63 '-DSTONE_WEB_VIEWER_EXPORT=__attribute__((annotate("WebAssembly")))'], | |
63 options = clang.cindex.TranslationUnit.PARSE_SKIP_FUNCTION_BODIES) | 64 options = clang.cindex.TranslationUnit.PARSE_SKIP_FUNCTION_BODIES) |
64 | 65 |
65 | 66 |
66 | 67 |
67 TEMPLATE = ''' | 68 TEMPLATE = ''' |