2022-11-20 05:07:22 +00:00
|
|
|
#ifndef COMPILER_CEXCEPTION_H
|
|
|
|
#define COMPILER_CEXCEPTION_H
|
|
|
|
|
|
|
|
#include "compiler/common.h"
|
|
|
|
|
2022-12-29 12:32:55 +00:00
|
|
|
extern ExceptionAction *cexcept_dobjstack;
|
|
|
|
extern Boolean cexcept_hasdobjects;
|
|
|
|
extern Boolean cexcept_magic;
|
|
|
|
|
|
|
|
extern void CExcept_Setup(void);
|
|
|
|
extern Boolean CExcept_CanThrowException(Object *object, Boolean flag);
|
|
|
|
extern void CExcept_CheckStackRefs(ExceptionAction *actions);
|
|
|
|
extern void CExcept_CompareSpecifications(ExceptSpecList *a, ExceptSpecList *b);
|
|
|
|
extern Boolean CExcept_ActionCompare(ExceptionAction *a, ExceptionAction *b);
|
|
|
|
extern int CExcept_IsSubList(ExceptionAction *a, ExceptionAction *b);
|
|
|
|
extern Boolean CExcept_ActionNeedsDestruction(ExceptionAction *action);
|
|
|
|
extern ENode *CExcept_RegisterDestructorObject(Object *local, SInt32 offset, Object *dtor, Boolean flag);
|
|
|
|
extern void CExcept_RegisterLocalArray(Statement *stmt, Object *localarray, Object *dtor, SInt32 elements, SInt32 element_size);
|
|
|
|
extern void CExcept_RegisterDeleteObject(Statement *stmt, Object *pointerobject, Object *deletefunc);
|
|
|
|
extern void CExcept_Terminate(void);
|
|
|
|
extern void CExcept_Magic(void);
|
|
|
|
extern void CExcept_ArrayInit(void);
|
|
|
|
extern void CExcept_RegisterMember(Statement *stmt, Object *objectptr, SInt32 offset, Object *dtor, Object *cond, Boolean isMember);
|
|
|
|
extern void CExcept_RegisterMemberArray(Statement *stmt, Object *objectptr, SInt32 offset, Object *dtor, SInt32 elements, SInt32 element_size);
|
|
|
|
extern Statement *CExcept_ActionCleanup(ExceptionAction *ea, Statement *stmt);
|
|
|
|
extern void CExcept_ScanExceptionSpecification(TypeFunc *tfunc);
|
|
|
|
extern ENode *CExcept_ScanThrowExpression(void);
|
|
|
|
extern void CExcept_ScanTryBlock(DeclThing *dt, Boolean flag);
|
|
|
|
extern void CExcept_ExceptionTansform(Statement *stmt);
|
2022-12-14 00:16:59 +00:00
|
|
|
|
2022-11-20 05:07:22 +00:00
|
|
|
#endif
|