1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Improved fatal errors - they run through crash handler now

This commit is contained in:
Brian Fiete 2020-05-13 12:30:25 -07:00
parent 9010d8ed47
commit 767ced3563
5 changed files with 48 additions and 30 deletions

View file

@ -1307,6 +1307,8 @@ public:
}
};
#define BFMODULE_FATAL(module, msg) (module)->FatalError((msg), __FILE__, __LINE__)
class BfModule : public BfStructuralVisitor
{
public:
@ -1405,6 +1407,7 @@ public:
bool mHadHotObjectWrites;
public:
void FatalError(const StringImpl& error, const char* file = NULL, int line = -1);
void NotImpl(BfAstNode* astNode);
void AddMethodReference(const BfMethodRef& methodRef, BfGetMethodInstanceFlags flags = BfGetMethodInstanceFlag_None);
bool CheckProtection(BfProtection protection, bool allowProtected, bool allowPrivate);