Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Have SDL_ATprint just call SDL_ATprintVerbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 4, 2009
1 parent ee39b7d commit 5ff988f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
25 changes: 0 additions & 25 deletions test/automated/SDL_at.c
Expand Up @@ -261,31 +261,6 @@ int SDL_ATprintErr( const char *msg, ... )
}


/**
* @brief Displays a message.
*/
int SDL_ATprint( const char *msg, ... )
{
va_list ap;
int ret;

/* Only print if not quiet. */
if (at_quiet)
return 0;

/* Make sure there is something to print. */
if (msg == NULL)
return 0;
else {
va_start(ap, msg);
ret = vfprintf( stdout, msg, ap );
va_end(ap);
}

return ret;
}


/**
* @brief Displays a verbose message.
*/
Expand Down
9 changes: 8 additions & 1 deletion test/automated/SDL_at.h
Expand Up @@ -127,10 +127,17 @@ int SDL_ATprintErr( const char *msg, ... );
* @param msg printf formatted string to display.
* @return Number of character printed.
*/
int SDL_ATprint( const char *msg, ... );
#define SDL_ATprint(msg, args...) \
SDL_ATprintVerbose( 0, msg, ## args)
/**
* @brief Prints some verbose text.
*
* Verbosity levels are as follows:
*
* - 0 standard stdout, enabled by default
* - 1 additional information
* - 2 detailed information (spammy)
*
* @param level Level of verbosity to print at.
* @param msg printf formatted string to display.
* @return Number of character printed.
Expand Down

0 comments on commit 5ff988f

Please sign in to comment.