swig

Generate bindings between C / C++ code and various high…

swig

Generate bindings between C / C++ code and various high level languages such as Javascript, Python, C#, and more. It uses special .i or .swg files to generate the bindings (C/C++ with SWIG directives, then outputs a C/C++ file that contains all of the wrapper code needed to build an extension module.

swig -c++ -python -o {{path/to/output_wrapper.cpp}} {{path/to/swig_file.i}}

swig -go -cgo -intgosize 64 -c++ {{path/to/swig_file.i}}

swig -java {{path/to/swig_file.i}}

swig -ruby -prefix "{{foo::bar::}}" {{path/to/swig_file.i}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← swift swipl →