chiark / gitweb /
make prepending nlopt_ the exception, not the rule
authorstevenj <stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:44:42 +0000 (00:44 -0400)
committerstevenj <stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:44:42 +0000 (00:44 -0400)
darcs-hash:20100611044442-c8de0-ab8bc3e581c5809c5d321b4db90a741997b3de31.gz

swig/nlopt.i

index cb8378602b2a43f98b9fd5c42899fc77fb560ac0..771cc2440ce1ad677838356ba0751e2b5f5efa7f 100644 (file)
@@ -9,7 +9,8 @@ namespace std {
   %template(nlopt_doublevector) vector<double>;
 };
 
-#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;