MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / NewLoopItem

Function NewLoopItem

src/Chain/libraries/glua/glua_decompile.cpp:330–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328void DeclareLocal(GluaDecompileContextP ctx, Function* F, int ixx, std::string value);
329
330LoopItem* NewLoopItem(StatementType type, int prep, int start, int body, int end, int out) {
331 auto self = new LoopItem();
332
333 self->parent = nullptr;
334 self->child = nullptr;
335 self->prev = nullptr;
336 self->next = nullptr;
337
338 self->type = type;
339 self->prep = prep;
340 self->start = start;
341 self->body = body;
342 self->end = end;
343 self->out = out;
344
345 self->indent = 0;
346 self->block = MakeBlockStatement(type, "");
347
348 return self;
349}
350
351int MatchLoopItem(LoopItem* item, LoopItem* match) {
352 return ((item->type == match->type) || (match->type == INT_MIN))

Callers 2

NewFunctionFunction · 0.85
ProcessCodeFunction · 0.85

Calls 1

MakeBlockStatementFunction · 0.85

Tested by

no test coverage detected