Hi All,
I have a lot of .idl files from a project like this one:
There are two .idl example:
Is it possible to
#include existing .idl files with webIDL and then creating .cpp and .js from them?
I tried to make a .cpp and .js file from the original XInterface.idl file with './webidl_binder XInterface.idl glue', but as I expected it didn't work, because of the #ifndef prepocess
Can webIDL handle
prepocesess like #ifndef
#define and/or
#include existing .idl files with webIDL?
By the way the error msg was:
Traceback (most recent call last):
File "/home/bvarga/builder/emsdk/upstream/emscripten/tools/./webidl_binder.py", line 55, in <module>
p.parse(r'''
File "/home/bvarga/builder/emsdk/upstream/emscripten/third_party/WebIDL.py", line 4960, in parse
self._productions.extend(self.parser.parse(lexer=self.lexer,tracking=True))
File "/home/bvarga/builder/emsdk/upstream/emscripten/third_party/ply/ply/yacc.py", line 263, in parse
return self.parseopt(input,lexer,debug,tracking,tokenfunc)
File "/home/bvarga/builder/emsdk/upstream/emscripten/third_party/ply/ply/yacc.py", line 792, in parseopt
tok = self.errorfunc(errtoken)
File "/home/bvarga/builder/emsdk/upstream/emscripten/third_party/WebIDL.py", line 4909, in p_error
raise WebIDLError("invalid syntax", [Location(self.lexer, p.lineno, p.lexpos, self._filename)])
WebIDL.WebIDLError: error: invalid syntax, <unknown> line 22:0
#ifndef __com_sun_star_uno_XInterface_idl__
^
Thanks for the feedback in advance.
Best,
Balázs