14 #include "cal3d/global.h" 24 MEMORY_ALLOCATION_FAILED,
30 INVALID_ANIMATION_DURATION,
32 INVALID_ATTRIBUTE_VALUE,
33 INVALID_KEYFRAME_COUNT,
34 INVALID_ANIMATION_TYPE,
37 INCOMPATIBLE_FILE_VERSION,
45 CAL3D_API Code getLastErrorCode();
46 CAL3D_API
const std::string& getLastErrorFile();
47 CAL3D_API
int getLastErrorLine();
48 CAL3D_API
const std::string& getLastErrorText();
49 CAL3D_API
void printLastError();
50 CAL3D_API
void setLastError(Code code,
const std::string& strFile,
int line,
const std::string& strText =
"");
52 CAL3D_API std::string getErrorDescription(Code code);
54 inline std::string getLastErrorDescription() {
55 return getErrorDescription(getLastErrorCode());