MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / push

Method push

include/daScript/simulate/heap.h:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 __forceinline bool push(uint32_t size, char * & EP, char * & SP ) { // stack watermark
50 DAS_ASSERTF(stack,"can't push on null stack");
51 if (stackTop - size < stack ) {
52 return false;
53 }
54 EP = evalTop;
55 SP = stackTop;
56 stackTop -= size;
57 evalTop = stackTop;
58 return true;
59 }
60
61 __forceinline void watermark ( char * & EP, char * & SP ) {
62 EP = evalTop;

Callers 5

callFunction · 0.45
callOrFastcallFunction · 0.45
callWithCopyOnReturnFunction · 0.45
callExFunction · 0.45
das_stack_prologueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected