| 1374 | } |
| 1375 | |
| 1376 | bool introduceFile ( smart_ptr_raw<FileAccess> access, char * fname, char * str, Context * context, LineInfoArg * at ) { |
| 1377 | if ( !fname ) context->throw_error_at(at, "expecting file name"); |
| 1378 | const char * safeStr = str ? str : ""; |
| 1379 | uint32_t str_len = stringLength(*context, safeStr); |
| 1380 | auto fileInfo = make_unique<TextFileInfo>(safeStr, str_len, false); |
| 1381 | return access->setFileInfo(fname, das::move(fileInfo)) != nullptr; |
| 1382 | } |
| 1383 | |
| 1384 | #else |
| 1385 | smart_ptr<FileAccess> makeFileAccess( char *, Context * context, LineInfoArg * at ) { |
nothing calls this directly
no test coverage detected