4 * Declarations of Macintosh specific functions for debugging MacOS events,
7 * Copyright 2001-2009, Apple Inc.
8 * Copyright (c) 2005-2009 Daniel A. Steffen <das@users.sourceforge.net>
10 * See the file "license.terms" for information on usage and redistribution
11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
18 #include "tkMacOSXInt.h"
23 MODULE_SCOPE void* TkMacOSXGetNamedDebugSymbol(const char* module, const char* symbol);
25 /* Macro to abstract common use of TkMacOSXGetNamedDebugSymbol to initialize named symbols */
26 #define TkMacOSXInitNamedDebugSymbol(module, ret, symbol, ...) \
27 static ret (* symbol)(__VA_ARGS__) = (void*)(-1L); \
28 if (symbol == (void*)(-1L)) { \
29 symbol = TkMacOSXGetNamedDebugSymbol(STRINGIFY(module), STRINGIFY(_##symbol));\
32 #endif /* TK_MAC_DEBUG */