Skip to main content


ec_interpolate_calc_deps — Determine the requirements for a macro expansion


#include "misc/expand_string.h"

| int **ec_interpolate_calc_deps** ( | input, |   | |   | default_namespace, |   | |   | flags, |   | |   | reqs, |   | |   | typednames); |   |

const char * <var class="pdparam">input</var>; const char * <var class="pdparam">default_namespace</var>; int <var class="pdparam">flags</var>; int * <var class="pdparam">reqs</var>; ECDict <var class="pdparam">typednames</var>;



This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Determine the requirements for a macro expansion.

This function evaluates a string expansion and builds up a list of requirements or dependencies for the set of macros used in the string.

This is useful in situations where you are queuing jobs and need to copy or marshal the required pieces that would otherwise be discarded by a code path outside of your control.



the string to be expanded


the allowed namespaces


flags to control the interpolation style


populated with a bitfield of general requirements


if not NULL, will be populated with the type names that were requested from the bag in the interpolation context.

Was this page helpful?