src/tinyl2c.cpp
//////////////////////////////////////////////////////////////////////////
//Print function that outputs to debug console in windows in addition 
//to std out
//////////////////////////////////////////////////////////////////////////
Print function that outputs to debug console in windows in addition
to std out
Print function that outputs to debug console in windows in addition to std out
void l2c_printf(const char * format, ...)
{
	char buffer[1024];
	va_list args;
	va_start(args, format);
	vsprintf_s(buffer, format, args);
#ifdef _WIN32
	OutputDebugStringA(buffer);
#endif
	printf(buffer);
	va_end(args);
}
void l2c_printf ( const char * format , ... ) { char buffer [ 1024 ] ; va_list args ; va_start ( args , format ) ; vsprintf_s ( buffer , format , args ) ; #ifdef _WIN32 OutputDebugStringA ( buffer ) ; #endif printf ( buffer ) ; va_end ( args ) ; }
Print function that outputs to debug console in windows in addition
to std out
Print function that outputs to debug console in windows in addition to std out