MCPcopy Create free account
hub / github.com/ElementsProject/elements / push_back

Method push_back

src/script/interpreter.cpp:406–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 bool empty() const { return m_stack_size == 0; }
405 bool all_true() const { return m_first_false_pos == NO_FALSE; }
406 void push_back(bool f)
407 {
408 if (m_first_false_pos == NO_FALSE && !f) {
409 // The stack consists of all true values, and a false is added.
410 // The first false value will appear at the current size.
411 m_first_false_pos = m_stack_size;
412 }
413 ++m_stack_size;
414 }
415 void pop_back()
416 {
417 assert(m_stack_size > 0);

Callers 15

GetPubKeyMethod · 0.45
ToNormalizedStringMethod · 0.45
ExpandHelperMethod · 0.45
ParseKeyPathFunction · 0.45
ParseScriptFunction · 0.45
InferScriptFunction · 0.45
NullDataClass · 0.45
pushvalueFunction · 0.45
pushspkFunction · 0.45
CheckSignatureEncodingFunction · 0.45
EvalScriptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected