Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/tkMacOSXDebug.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 /* |
jpayne@69 | 2 * tkMacOSXDebug.h -- |
jpayne@69 | 3 * |
jpayne@69 | 4 * Declarations of Macintosh specific functions for debugging MacOS events, |
jpayne@69 | 5 * regions, etc... |
jpayne@69 | 6 * |
jpayne@69 | 7 * Copyright 2001-2009, Apple Inc. |
jpayne@69 | 8 * Copyright (c) 2005-2009 Daniel A. Steffen <das@users.sourceforge.net> |
jpayne@69 | 9 * |
jpayne@69 | 10 * See the file "license.terms" for information on usage and redistribution |
jpayne@69 | 11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
jpayne@69 | 12 */ |
jpayne@69 | 13 |
jpayne@69 | 14 #ifndef _TKMACDEBUG |
jpayne@69 | 15 #define _TKMACDEBUG |
jpayne@69 | 16 |
jpayne@69 | 17 #ifndef _TKMACINT |
jpayne@69 | 18 #include "tkMacOSXInt.h" |
jpayne@69 | 19 #endif |
jpayne@69 | 20 |
jpayne@69 | 21 #ifdef TK_MAC_DEBUG |
jpayne@69 | 22 |
jpayne@69 | 23 MODULE_SCOPE void* TkMacOSXGetNamedDebugSymbol(const char* module, const char* symbol); |
jpayne@69 | 24 |
jpayne@69 | 25 /* Macro to abstract common use of TkMacOSXGetNamedDebugSymbol to initialize named symbols */ |
jpayne@69 | 26 #define TkMacOSXInitNamedDebugSymbol(module, ret, symbol, ...) \ |
jpayne@69 | 27 static ret (* symbol)(__VA_ARGS__) = (void*)(-1L); \ |
jpayne@69 | 28 if (symbol == (void*)(-1L)) { \ |
jpayne@69 | 29 symbol = TkMacOSXGetNamedDebugSymbol(STRINGIFY(module), STRINGIFY(_##symbol));\ |
jpayne@69 | 30 } |
jpayne@69 | 31 |
jpayne@69 | 32 #endif /* TK_MAC_DEBUG */ |
jpayne@69 | 33 |
jpayne@69 | 34 #endif |