MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Assign

Method Assign

source/Debugger/Debug.cpp:263–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 ProfileLine_t() : buf(NULL), bufsz(0) {}
262 ProfileLine_t(char* _buf, size_t _bufsz) : buf(_buf), bufsz(_bufsz) {}
263 void Assign(std::string const& str)
264 {
265 if (!buf || bufsz <= 0) return;
266 strncpy_s(buf, bufsz, str.c_str(), _TRUNCATE);
267 }
268 ATTRIBUTE_FORMAT_PRINTF(2, 3) /* 1 is "this" */
269 void Format(const char* fmt, ...)
270 {

Callers 1

ProfileFormatFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected