diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/script/debugger/sourcecodeline.cpp | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/script/debugger/sourcecodeline.cpp')
-rw-r--r-- | Src/Wasabi/api/script/debugger/sourcecodeline.cpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Src/Wasabi/api/script/debugger/sourcecodeline.cpp b/Src/Wasabi/api/script/debugger/sourcecodeline.cpp new file mode 100644 index 00000000..b6511c2b --- /dev/null +++ b/Src/Wasabi/api/script/debugger/sourcecodeline.cpp @@ -0,0 +1,69 @@ +#include <precomp.h> +#include "sourcecodeline.h" + +#ifdef CBCLASS +#undef CBCLASS +#endif +#define CBCLASS SourceCodeLineI +START_DISPATCH; + CB(SOURCECODELINE_GETLINE, getLine); + VCB(SOURCECODELINE_SETLINE, setLine); + CB(SOURCECODELINE_GETPOINTER, getPointer); + VCB(SOURCECODELINE_SETPOINTER, setPointer); + CB(SOURCECODELINE_GETLENGTH, getLength); + VCB(SOURCECODELINE_SETLENGTH, setLength); + VCB(SOURCECODELINE_SETSOURCEFILE, setSourceFile); + CB(SOURCECODELINE_GETSOURCEFILE, getSourceFile); + VCB(SOURCECODELINE_SETSOURCEFILELINE, setSourceFileLine); + CB(SOURCECODELINE_GETSOURCEFILELINE, getSourceFileLine); +END_DISPATCH; + +SourceCodeLineI::SourceCodeLineI() { + pointer = -1; + fileline = -1; + length = 0; +} + +SourceCodeLineI::~SourceCodeLineI() { +} + +const wchar_t *SourceCodeLineI::getLine() +{ + return line; +} + +void SourceCodeLineI::setLine(const wchar_t *_line) { + line = _line; +} + +int SourceCodeLineI::getPointer() { + return pointer; +} + +void SourceCodeLineI::setPointer(int _pointer) { + pointer = _pointer; +} + +int SourceCodeLineI::getLength() { + return length; +} + +void SourceCodeLineI::setLength(int _length) { + length = _length; +} + +void SourceCodeLineI::setSourceFile(const wchar_t *_file) { + file = _file; +} + +const wchar_t *SourceCodeLineI::getSourceFile() { + return file; +} + +void SourceCodeLineI::setSourceFileLine(int _linenumber) { + fileline = _linenumber; +} + +int SourceCodeLineI::getSourceFileLine() { + return fileline; +}
\ No newline at end of file |