From fcc0f601a860a2d4d2329b30e51393c8e610187b Mon Sep 17 00:00:00 2001 From: Armando Rivera Date: Wed, 6 Nov 2013 23:48:25 -0500 Subject: [PATCH] Changed char* in txtIt proc to CSTRING --- sdl_test/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl_test/test.cpp b/sdl_test/test.cpp index 9a734ab..77e491e 100644 --- a/sdl_test/test.cpp +++ b/sdl_test/test.cpp @@ -6,10 +6,10 @@ DIM AS CHAR string[128]; // String used by txtIt & SDL_ttf // Conver Variable Argument into a string -SUB txtIt(const char *pStr , ...) BEGIN +SUB txtIt(CSTRING pStr , ...) BEGIN DIM AS va_list valist; // Type to hold information about variable arguments va_start(valist, pStr); // Initialize a variable argument list - vsprintf( string , pStr , valist ); // Print formatted variable argument list to string + vsprintf( string , pStr.c_str() , valist ); // Print formatted variable argument list to string va_end(valist); // This macro should be executed before the function ENDSUB