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

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

svn:eol-styleとsvn:mime-type(文字コード指定含む)の設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain; charset=Shift_JIS
File size: 645 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.