MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxBufferFunctionName

Function fxBufferFunctionName

xs/sources/xsAll.c:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void fxBufferFunctionName(txMachine* the, txString buffer, txSize size, txSlot* function, txString suffix)
136{
137 txSlot* slot = mxFunctionInstanceCode(function);
138 txSlot* home = mxFunctionInstanceHome(function);
139 if ((slot->kind == XS_CODE_KIND) || (slot->kind == XS_CODE_X_KIND))
140 fxBufferFunctionNameAddress(the, buffer, size, slot->ID, C_NULL, home->ID);
141 else
142 fxBufferFunctionNameAddress(the, buffer, size, slot->ID, slot->value.callback.address, home->ID);
143 c_strncat(buffer, suffix, size - mxStringLength(buffer) - 1);
144}
145
146void fxBufferFunctionNameAddress(txMachine* the, txString buffer, txSize size, txID id, txCallback address, txID profileID)
147{

Callers 2

fxBufferFrameNameFunction · 0.85
fxEchoInstanceFunction · 0.85

Calls 1

Tested by

no test coverage detected