ext/ds_tweakable.h
static void twk__report_error(char* format, ...) {
	if (_twkCtx->errorHandler != 0) {
		va_list args;
		va_start(args, format);
		char buffer[1024];
		memset(buffer, 0, sizeof(buffer));
		int written = vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, format, args);	
		(*_twkCtx->errorHandler)(buffer);
		va_end(args);
	}
}
// ------------------------------------------------------------
// internal error reporting using the twkErrorHandle callback
// ------------------------------------------------------------
internal error reporting using the twkErrorHandle callback
internal error reporting using the twkErrorHandle callback
static void twk__report_error(char* format, ...) {
	if (_twkCtx->errorHandler != 0) {
		va_list args;
		va_start(args, format);
		char buffer[1024];
		memset(buffer, 0, sizeof(buffer));
		int written = vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, format, args);	
		(*_twkCtx->errorHandler)(buffer);
		va_end(args);
	}
}
static void twk__report_error ( char * format , ... ) { if ( _twkCtx -> errorHandler != 0 ) { va_list args ; va_start ( args , format ) ; char buffer [ 1024 ] ; memset ( buffer , 0 , sizeof ( buffer ) ) ; int written = vsnprintf_s ( buffer , sizeof ( buffer ) , _TRUNCATE , format , args ) ; ( * _twkCtx -> errorHandler ) ( buffer ) ; va_end ( args ) ; } }
internal error reporting using the twkErrorHandle callback
internal error reporting using the twkErrorHandle callback