Assimp  v4.1. (December 2018)
ASEParser.cpp File Reference

Implementation of the ASE parser class. More...

Macros

#define AI_ASE_HANDLE_SECTION(level, msg)
 
#define AI_ASE_HANDLE_TOP_LEVEL_SECTION()
 
#define AI_ASE_PARSER_INIT()   int iDepth = 0;
 

Detailed Description

Implementation of the ASE parser class.

Macro Definition Documentation

◆ AI_ASE_HANDLE_SECTION

#define AI_ASE_HANDLE_SECTION (   level,
  msg 
)
Value:
if ('{' == *filePtr)iDepth++; \
else if ('}' == *filePtr) \
{ \
if (0 == --iDepth) \
{ \
++filePtr; \
SkipToNextToken(); \
return; \
} \
} \
else if ('\0' == *filePtr) \
{ \
LogError("Encountered unexpected EOL while parsing a " msg \
" chunk (Level " level ")"); \
} \
if(IsLineEnd(*filePtr) && !bLastWasEndLine) \
{ \
++iLineNumber; \
bLastWasEndLine = true; \
} else bLastWasEndLine = false; \
++filePtr;
AI_FORCE_INLINE bool IsLineEnd(char_t in)
Definition: ParsingUtils.h:102
level
Definition: 3d_viewer.py:21

◆ AI_ASE_HANDLE_TOP_LEVEL_SECTION

#define AI_ASE_HANDLE_TOP_LEVEL_SECTION ( )
Value:
else if ('{' == *filePtr)iDepth++; \
else if ('}' == *filePtr) \
{ \
if (0 == --iDepth) \
{ \
++filePtr; \
SkipToNextToken(); \
return; \
} \
} \
else if ('\0' == *filePtr) \
{ \
return; \
} \
if(IsLineEnd(*filePtr) && !bLastWasEndLine) \
{ \
++iLineNumber; \
bLastWasEndLine = true; \
} else bLastWasEndLine = false; \
++filePtr;
AI_FORCE_INLINE bool IsLineEnd(char_t in)
Definition: ParsingUtils.h:102

◆ AI_ASE_PARSER_INIT

#define AI_ASE_PARSER_INIT ( )    int iDepth = 0;