From 43e86cba58df4f4181080c04de0b56a2a0de1403 Mon Sep 17 00:00:00 2001 From: stevenj Date: Fri, 11 Jun 2010 00:44:42 -0400 Subject: [PATCH] make prepending nlopt_ the exception, not the rule darcs-hash:20100611044442-c8de0-ab8bc3e581c5809c5d321b4db90a741997b3de31.gz --- swig/nlopt.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2