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

Function fxUnsigned

xs/sources/xsAPI.c:331–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void fxUnsigned(txMachine* the, txSlot* theSlot, txUnsigned theValue)
332{
333 if (((txInteger)theValue) >= 0) {
334 theSlot->value.integer = theValue;
335 theSlot->kind = XS_INTEGER_KIND;
336 }
337 else {
338 theSlot->value.number = theValue;
339 theSlot->kind = XS_NUMBER_KIND;
340 }
341}
342
343txUnsigned fxToUnsigned(txMachine* the, txSlot* theSlot)
344{

Callers 6

xsRun.cFile · 0.85
xsffi.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected