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

Function wrapInUnsafe

src/ast/ast_generate.cpp:438–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436 }
437
438 void wrapInUnsafe ( const FunctionPtr & func ) {
439 auto blk = new ExprBlock();
440 blk->at = func->body->at;
441 auto usa = new ExprUnsafe(func->body->at);
442 usa->body = func->body;
443 blk->list.push_back(usa);
444 func->body = blk;
445 }
446
447 FunctionPtr generatePointerFinalizer ( const TypeDeclPtr & ptrType, const LineInfo & at ) {
448 auto pFunc = new Function();

Callers 4

generatePointerFinalizerFunction · 0.85
generateTupleFinalizerFunction · 0.85
generateVariantFinalizerFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected