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

Function MakeIfStatement

src/Chain/libraries/glua/glua_statement.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 AstStatement* MakeIfStatement(std::string test) {
72 AstStatement* ifstmt = MakeBlockStatement(IF_STMT, test);
73 AddToStatement(ifstmt, MakeBlockStatement(IF_THEN_STMT, ""));
74 AddToStatement(ifstmt, MakeBlockStatement(IF_ELSE_STMT, ""));
75 return ifstmt;
76 }
77
78 void ClearAstStatement(AstStatement* stmt, void* dummy) {
79 if (stmt == NULL) {

Callers 1

FlushBooleanFunction · 0.85

Calls 2

MakeBlockStatementFunction · 0.85
AddToStatementFunction · 0.85

Tested by

no test coverage detected