| 859 | ////////////////////////////////////////////////////////////////////////// |
| 860 | |
| 861 | void CeBuilder::Fail(const StringImpl& str) |
| 862 | { |
| 863 | if (!mCeFunction->mGenError.IsEmpty()) |
| 864 | return; |
| 865 | |
| 866 | String errStr = StrFormat("Failure during comptime generation of %s: %s", mBeFunction->mName.c_str(), str.c_str()); |
| 867 | if (mCurDbgLoc != NULL) |
| 868 | { |
| 869 | String filePath; |
| 870 | mCurDbgLoc->GetDbgFile()->GetFilePath(filePath); |
| 871 | errStr += StrFormat(" at line %d:%d in %s", mCurDbgLoc->mLine + 1, mCurDbgLoc->mColumn + 1, filePath.c_str()); |
| 872 | } |
| 873 | |
| 874 | mCeFunction->mGenError = errStr; |
| 875 | } |
| 876 | |
| 877 | void CeBuilder::Emit(uint8 val) |
| 878 | { |
no test coverage detected