Changed char* in txtIt proc to CSTRING
This commit is contained in:
parent
e67c1ca432
commit
fcc0f601a8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user