chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cdc293
)
make prepending nlopt_ the exception, not the rule
author
stevenj
<stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:44:42 +0000
(
00:44
-0400)
committer
stevenj
<stevenj@alum.mit.edu>
Fri, 11 Jun 2010 04:44:42 +0000
(
00:44
-0400)
darcs-hash:
20100611044442
-c8de0-
ab8bc3e581c5809c5d321b4db90a741997b3de31
.gz
swig/nlopt.i
patch
|
blob
|
history
diff --git
a/swig/nlopt.i
b/swig/nlopt.i
index cb8378602b2a43f98b9fd5c42899fc77fb560ac0..771cc2440ce1ad677838356ba0751e2b5f5efa7f 100644
(file)
--- a/
swig/nlopt.i
+++ b/
swig/nlopt.i
@@
-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;