conditional swig