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

Function PiuText_beginBlock

modules/piu/All/piuText.c:1232–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void PiuText_beginBlock(xsMachine *the)
1233{
1234 PiuText* self = PIU(Text, xsThis);
1235 xsIntegerValue c = xsToInteger(xsArgc);
1236 PiuStyle* style = ((c > 0) && xsTest(xsArg(0))) ? PIU(Style, xsArg(0)) : NULL;
1237 PiuTextLink* link = ((c > 1) && xsTest(xsArg(1))) ? PIU(TextLink, xsArg(1)) : NULL;
1238 if ((*self)->nodeOffset != -1)
1239 xsUnknownError("block inside block");
1240 PiuTextBeginNode(self, piuTextNodeBeginBlockKind, style, link);
1241}
1242
1243void PiuText_beginSpan(xsMachine *the)
1244{

Callers

nothing calls this directly

Calls 1

PiuTextBeginNodeFunction · 0.85

Tested by

no test coverage detected