Skip to content

Commit 4fa7d4e

Browse files
committed
Fix debug support
1 parent 28213d1 commit 4fa7d4e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/hsp3/linux/supio_linux.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,3 +853,30 @@ int ReplaceDone( void )
853853
}
854854

855855

856+
857+
858+
//
859+
// linux debug support
860+
//
861+
void Alert( const char *mes )
862+
{
863+
printf( "%s", mes );
864+
printf( "\r\n" );
865+
}
866+
867+
void AlertV( const char *mes, int val )
868+
{
869+
printf( "%s%d\r\n",mes,val );
870+
}
871+
872+
void Alertf( const char *format, ... )
873+
{
874+
char textbf[4096];
875+
va_list args;
876+
va_start(args, format);
877+
vsprintf(textbf, format, args);
878+
va_end(args);
879+
printf( "%s", textbf );
880+
printf( "\r\n" );
881+
}
882+

0 commit comments

Comments
 (0)