mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
28 lines
758 B
C
28 lines
758 B
C
#pragma once
|
|
|
|
#include "Types.h"
|
|
|
|
//-------------------------------------------------------------------------------------------------------------------------------
|
|
// Events
|
|
//-------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
bool Event_Message(int nEventType, const char *sFormatString, ...)
|
|
{
|
|
if ( sFormatString != NULL )
|
|
{
|
|
char sMessage[MSG_SIZE]={};
|
|
va_list sArg;
|
|
|
|
memset( sMessage, 0, MSG_SIZE );
|
|
va_start( sArg, sFormatString );
|
|
int nLength = ( strlen( sFormatString ) > MSG_SIZE ) ? MSG_SIZE : strlen( sFormatString );
|
|
vsprintf( sMessage, sFormatString, sArg );
|
|
va_end( sArg );
|
|
|
|
AtlTrace(sMessage/*, pCodecInfo->pClientData*/);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|