From 43d65dc03325bcce8561423b9607f7e114355f7d Mon Sep 17 00:00:00 2001 From: ferbas Date: Wed, 13 Jan 2010 09:41:29 +0000 Subject: initial import git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@545 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../sources/import/SDK/ASDebug.h | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASDebug.h (limited to 'Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASDebug.h') diff --git a/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASDebug.h b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASDebug.h new file mode 100644 index 0000000..86aafb5 --- /dev/null +++ b/Adobe_SigHandler/Adobe.PDF-AS-SigHandler/sources/import/SDK/ASDebug.h @@ -0,0 +1,105 @@ +/***********************************************************************/ +/* */ +/* ASDebug.h */ +/* */ +/* Copyright 1999 Adobe Systems Incorporated. */ +/* All Rights Reserved. */ +/* */ +/* Patents Pending */ +/* */ +/* NOTICE: All information contained herein is the property of Adobe */ +/* Systems Incorporated. Many of the intellectual and technical */ +/* concepts contained herein are proprietary to Adobe, are protected */ +/* as trade secrets, and are made available only to Adobe licensees */ +/* for their internal use. Any reproduction or dissemination of this */ +/* software is strictly forbidden unless prior written permission is */ +/* obtained from Adobe. */ +/* */ +/* Started by Eric Scouten, 06/14/1999 */ +/* */ +/***********************************************************************/ + + +#ifndef __ASDebug__ +#define __ASDebug__ + + // ASAPI +#include "ASTypes.h" + + +#pragma PRAGMA_ALIGN_BEGIN +#pragma PRAGMA_IMPORT_BEGIN + + +#ifdef __cplusplus +extern "C" { +#endif + + + +// ----------------------------------------------------------------------------- + +// ASDebugAction enum defines what to do when an exception or assertion happens. + +typedef enum { + kASDebugAction_Nothing = 0, + kASDebugAction_Alert = 1, + kASDebugAction_LowLevelDebugger = 2, + kASDebugAction_SourceDebugger = 3, + kASDebugAction_Log = 4, + kASDebugAction_DummyAction = 0xFFFFFFFF +} ASDebugAction; + + +// ============================================================================= +// * ASDebugSuite +// ============================================================================= + +#define kASDebugSuite "AS Debug Suite" +#define kASDebugSuiteVersion1 1 + +// ----------------------------------------------------------------------------- + +typedef struct +{ + + // debugging traps + + void ASAPI (*RaiseSignal)(const char* inMessage, const char* inPlugin, + const char* inFile, ASUInt32 inLineNumber); + + void ASAPI (*AboutToThrow)(const char* inMessage, const char* inPlugin, + const char* inFile, ASUInt32 inLineNumber); + + // debugging log + + void ASAPI (*LogMessage)(const char* inMessage); + void ASAPI (*IndentLog)(); + void ASAPI (*UnindentLog)(); + + // debugging behavior control + + ASDebugAction ASAPI (*GetSignalAction)(); + void ASAPI (*SetSignalAction)(ASDebugAction inSignalAction); + + ASDebugAction ASAPI (*GetThrowAction)(); + void ASAPI (*SetThrowAction)(ASDebugAction inThrowAction); + + // debugging message dialog + + void ASAPI (*ShowDebugAlert)(const char* inHeading, const char* inMessage, + const char* inPlugin, const char* inFile, ASUInt32 inLineNumber); + +} ASDebugSuite1; + + +// ----------------------------------------------------------------------------- + +#pragma PRAGMA_IMPORT_END +#pragma PRAGMA_ALIGN_END + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3