standard converstion to signed integer but disallows undefined
| 187 | |
| 188 | // standard converstion to signed integer but disallows undefined |
| 189 | int32_t builtinGetSignedInteger(xsMachine *the, xsSlot *slot) |
| 190 | { |
| 191 | xsType type = fxTypeOf(the, slot); |
| 192 | if (xsUndefinedType == type) |
| 193 | xsUnknownError("invalid"); |
| 194 | |
| 195 | return fxToInteger(the, slot);; |
| 196 | } |
| 197 | |
| 198 | // standard converstion to unsigned integer but disallows undefined |
| 199 | uint32_t builtinGetUnsignedInteger(xsMachine *the, xsSlot *slot) |
no test coverage detected