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

Function fxCheckParserStack

xs/sources/xsScript.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41#if defined(__clang__) || defined (__GNUC__)
42 __attribute__((no_sanitize_address))
43#endif
44void fxCheckParserStack(txParser* parser, txInteger line)
45{
46 char x;
47 char *stack = &x;
48 if (stack <= parser->stackLimit) {
49 fxAbort(parser->console, XS_NATIVE_STACK_OVERFLOW_EXIT);
50 }
51}
52
53txString fxCombinePath(txParser* parser, txString base, txString name)
54{

Callers 15

fxBodyFunction · 0.85
fxBlockFunction · 0.85
fxStatementFunction · 0.85
fxDoStatementFunction · 0.85
xsSyntaxical.cFile · 0.85
fxAssignmentExpressionFunction · 0.85
fxUnaryExpressionFunction · 0.85
fxPrefixExpressionFunction · 0.85
fxLiteralExpressionFunction · 0.85
fxClassExpressionFunction · 0.85
fxBindingFunction · 0.85
fxArrayBindingFunction · 0.85

Calls 1

fxAbortFunction · 0.70

Tested by

no test coverage detected