source: dev/trunk/ab5.0/abdev/ab_common/src/Lexical/SourceCodePosition.cpp@ 828

Last change on this file since 828 was 828, checked in by イグトランス (egtra), 12 years ago

egtraブランチの内容をマージ。

File size: 674 bytes
Line 
1#include "stdafx.h"
2#include <jenga/include/jenga.h>
3#include <abdev/ab_common/include/ab_common.h>
4
5int 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}
15bool 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.