playerproject / player

The Player cross-platform robot device interface & server
GNU General Public License v2.0
58 stars 31 forks source link

FIX: explicitly do forward declaration on struct for swig file generation #27

Open mtasaka opened 7 months ago

mtasaka commented 7 months ago

Language bindings use files generated by playerc_swig_parse.py which parses header files, and playerc_swig_parse.py deletes the "tag" in struct definition. This behavior generates incomplete struct definition in generated file, then causes compilation error. To avoid compilation error, do explicit forward declaration for such struct.

Fixes #26 .