diff options
Diffstat (limited to 'Build/source/utils/asymptote/fundec.cc')
-rw-r--r-- | Build/source/utils/asymptote/fundec.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/fundec.cc b/Build/source/utils/asymptote/fundec.cc index 016e300321e..232b7550bb7 100644 --- a/Build/source/utils/asymptote/fundec.cc +++ b/Build/source/utils/asymptote/fundec.cc @@ -230,8 +230,10 @@ varinit *fundef::makeVarInit(function *ft) { void fundef::baseTrans(coenv &e, types::function *ft) { + string name = id ? string(*id) : string("<anonymous function>"); + // Create a new function environment. - coder fc = e.c.newFunction(ft); + coder fc = e.c.newFunction(name, ft); coenv fe(fc,e.e); // Translate the function. |