We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0391f commit 46ee11cCopy full SHA for 46ee11c
src/context.cpp
@@ -987,7 +987,13 @@ namespace Sass {
987
988
void register_c_function2(Context& ctx, Sass_Function_Entry descr)
989
{
990
- /* ExternalCallable* def = */ make_c_function2(descr, ctx);
+ ExternalCallable* callable = make_c_function2(descr, ctx);
991
+
992
+ ctx.functions.insert(std::make_pair(callable->name(), callable));
993
+ ctx.varRoot.hoistFunction(callable->name());
994
+ ctx.fnCache.push_back(callable);
995
996
+ // IdxRef fidx = ctx.varRoot.createFunction(def->name());
997
// def->environment(env);
998
// env->setFunction(def->name(), def);
999
}
0 commit comments