From d57b182701d91a10269a90f785fc07da74216955 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 6 Sep 2021 09:58:41 -0700 Subject: [PATCH] SCP: Expose _sim_vdebug for use by external libraries --- scp.c | 2 +- scp.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 1427b7f4..22a93be8 100644 --- a/scp.c +++ b/scp.c @@ -13772,7 +13772,7 @@ return stat | ((stat != SCPE_OK) ? SCPE_NOMESSAGE : 0); Callers should be calling sim_debug() which is a macro defined in scp.h which evaluates the action condition before incurring call overhead. */ -static void _sim_vdebug (uint32 dbits, DEVICE* dptr, UNIT *uptr, const char* fmt, va_list arglist) +void _sim_vdebug (uint32 dbits, DEVICE* dptr, UNIT *uptr, const char* fmt, va_list arglist) { if (sim_deb && dptr && ((dptr->dctrl | (uptr ? uptr->dctrl : 0)) & dbits)) { TMLN *saved_oline = sim_oline; diff --git a/scp.h b/scp.h index bdfd4c8a..85a02095 100644 --- a/scp.h +++ b/scp.h @@ -259,6 +259,7 @@ void sim_debug_bits (uint32 dbits, DEVICE* dptr, BITFIELD* bitdefs, #if defined (__DECC) && defined (__VMS) && (defined (__VAX) || (__DECC_VER < 60590001)) #define CANT_USE_MACRO_VA_ARGS 1 #endif +void _sim_vdebug (uint32 dbits, DEVICE* dptr, UNIT *uptr, const char* fmt, va_list arglist); #ifdef CANT_USE_MACRO_VA_ARGS #define _sim_debug_device sim_debug void sim_debug (uint32 dbits, DEVICE* dptr, const char *fmt, ...) GCC_FMT_ATTR(3, 4);