1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-30 22:17:13 +02:00

Include code line in runtime debug.

Include the line of code where the error occured into the debug message. Further adjustments to the oeverall implementation.
This commit is contained in:
Sandu Liviu Catalin
2019-06-16 02:51:16 +03:00
parent acea3db378
commit 061110914a
3 changed files with 55 additions and 28 deletions

View File

@ -958,13 +958,18 @@ public:
void SetIncomingName(CSStr name);
/* --------------------------------------------------------------------------------------------
* retrieve the name for the currently assigned incoming connection..
* Retrieve the name for the currently assigned incoming connection.
*/
CSStr GetIncomingName()
{
return (!m_IncomingNameBuffer) ? _SC("") : m_IncomingNameBuffer;
}
/* --------------------------------------------------------------------------------------------
* Retrieves a line of code from a certain source.
*/
String FetchCodeLine(CSStr src, SQInteger line, bool trim = true);
protected:
/* --------------------------------------------------------------------------------------------