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

Function disableSerializationOnDebugger

src/ast/ast_parse.cpp:1243–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241 }
1242
1243 void disableSerializationOnDebugger ( vector<ModuleInfo> & req ) {
1244 if ( daScriptEnvironment::getBound()->serializer_read == nullptr )
1245 return;
1246 for ( auto & mod : req ) {
1247 if ( mod.fileName.find("daslib/debug") != string::npos ) {
1248 auto & serializer_read = daScriptEnvironment::getBound()->serializer_read;
1249 auto & serializer_write = daScriptEnvironment::getBound()->serializer_read;
1250 serializer_read = serializer_write = nullptr;
1251 break;
1252 }
1253 }
1254 }
1255
1256 bool verifyModuleNamesUnique ( const vector<ModuleInfo> & req, TextWriter & logs ) {
1257 das_hash_map<string, string> fullName;

Callers 1

compileDaScriptFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected