Line | |
---|
1 | #include "stdafx.h"
|
---|
2 | #include <jenga/include/jenga.h>
|
---|
3 | #include <abdev/ab_common/include/ab_common.h>
|
---|
4 |
|
---|
5 | int SourceCodePosition::GetRelationalObjectModuleIndex() const
|
---|
6 | {
|
---|
7 | if( this->IsNothing() )
|
---|
8 | {
|
---|
9 | _ASSERTE( false );
|
---|
10 | throw std::runtime_error("SourceCodePosition::GetRelationalObjectModuleIndex");
|
---|
11 | }
|
---|
12 |
|
---|
13 | return relationalObjectModuleIndex;
|
---|
14 | }
|
---|
15 | bool SourceCodePosition::IsNothing() const
|
---|
16 | {
|
---|
17 | if( this->relationalObjectModuleIndex == -1 && this->pos == -1 )
|
---|
18 | {
|
---|
19 | return true;
|
---|
20 | }
|
---|
21 |
|
---|
22 | if( this->relationalObjectModuleIndex == -1 || this->pos == -1 )
|
---|
23 | {
|
---|
24 | _ASSERTE( false );
|
---|
25 | throw std::runtime_error("SourceCodePosition::IsNothing");
|
---|
26 | }
|
---|
27 |
|
---|
28 | return false;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.