aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/script/debugger/sourcecodeline.cpp
blob: b6511c2b7588b0c386034869600e82ee8f549f94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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;
}