From: stevenj Date: Fri, 11 Jun 2010 04:44:42 +0000 (-0400) Subject: make prepending nlopt_ the exception, not the rule X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=43e86cba58df4f4181080c04de0b56a2a0de1403;p=nlopt.git make prepending nlopt_ the exception, not the rule darcs-hash:20100611044442-c8de0-ab8bc3e581c5809c5d321b4db90a741997b3de31.gz --- diff --git a/swig/nlopt.i b/swig/nlopt.i index cb83786..771cc24 100644 --- a/swig/nlopt.i +++ b/swig/nlopt.i @@ -9,7 +9,8 @@ namespace std { %template(nlopt_doublevector) vector; }; -#ifndef SWIGPYTHON +// prepend "nlopt_" in Guile to substitute for namespace +#if defined(SWIGGUILE) %rename(nlopt_opt) nlopt::opt; %rename(nlopt_roundoff_limited) nlopt::roundoff_limited; %rename(nlopt_forced_stop) nlopt::forced_stop;