how to pass enum values from TCL script to C++ class using Swig

梦想与她 提交于 2019-12-02 11:50:18

According to the official documentation:

C/C++ constants are installed as global Tcl variables containing the appropriate value.

So you must refer to the enum value by dereferencing the corresponding variable:

% myClass_printEnum $one

Some examples of exposing C/C++ enums in Tcl are a available at http://doc.gnu-darwin.org/enum/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!