💾 Archived View for freeshell.de › tldr › swig.gmi captured on 2023-07-10 at 14:59:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

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 the wrapper code needed to build an extension module.

More information.

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}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY