MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / comment_out_code_line

Function comment_out_code_line

deps/GraphBLAS/CUDA/jitify.hpp:489–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489inline std::string comment_out_code_line(int line_num, std::string source) {
490 size_t beg = 0;
491 for (int i = 1; i < line_num; ++i) {
492 beg = source.find("\n", beg) + 1;
493 }
494 return (source.substr(0, beg) + "//" + source.substr(beg));
495}
496
497inline void print_with_line_numbers(std::string const& source) {
498 int linenum = 1;

Callers 1

load_programFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected