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

Function fxBufferObjectName

xs/sources/xsAll.c:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void fxBufferObjectName(txMachine* the, txString buffer, txSize size, txSlot* object, txString suffix)
182{
183 txSlot* slot = mxBehaviorGetProperty(the, object, mxID(_Symbol_toStringTag), 0, XS_ANY);
184 if (slot && ((slot->kind == XS_STRING_KIND) || (slot->kind == XS_STRING_X_KIND)) && !c_isEmpty(slot->value.string)) {
185 fxBufferName(buffer, slot->value.string, size - mxStringLength(buffer) - 1);
186 c_strncat(buffer, suffix, size - mxStringLength(buffer) - 1);
187 }
188}
189
190void fxBufferName(txString dst, txString src, txSize size)
191{

Callers 1

fxBufferFrameNameFunction · 0.85

Calls 1

fxBufferNameFunction · 0.85

Tested by

no test coverage detected