#include <memoryallocationbase.h>
Public Types | |
using | SourceLocationMarker = Int |
Public Member Functions | |
SourceLocation ()=default | |
constexpr MAXON_ATTRIBUTE_FORCE_INLINE | SourceLocation (const Char *f, Int l, const Char *objectName=nullptr) |
const Char * | GetFile () const |
Int | GetLine () const |
Bool | HasFrameInfo () const |
Bool | operator== (const SourceLocation &b) const |
Bool | operator< (const SourceLocation &b) const |
MAXON_OPERATOR_COMPARISON (SourceLocation) | |
HashInt | GetHashCode () const |
Static Public Member Functions | |
static MAXON_ATTRIBUTE_FORCE_INLINE const SourceLocation & | DefaultValue () |
Public Attributes | |
const Char * | file |
Int | lineAndFlags |
const Char * | name |
Static Public Attributes | |
static const Int | FRAME_INFO_FLAG |
static const Int | LINE_NUMBER_MASK |
using SourceLocationMarker = Int |
|
default |
|
constexpr |
const Char* GetFile | ( | ) | const |
Returns the source file as C string (or a nullptr).
Int GetLine | ( | ) | const |
Returns the source file line number (or 0).
Bool HasFrameInfo | ( | ) | const |
|
static |
Bool operator== | ( | const SourceLocation & | b | ) | const |
Bool operator< | ( | const SourceLocation & | b | ) | const |
MAXON_OPERATOR_COMPARISON | ( | SourceLocation | ) |
HashInt GetHashCode | ( | ) | const |
const Char* file |
Int lineAndFlags |
const Char* name |
|
static |
|
static |