~ubuntu-branches/ubuntu/wily/oolite/wily-proposed

« back to all changes in this revision

Viewing changes to tools/simpleDebugConsole/Source/JAPrint.h

  • Committer: Package Import Robot
  • Author(s): Nicolas Boulenguez
  • Date: 2011-12-22 00:22:39 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20111222002239-pr3upeupp4jw1psp
Tags: 1.76-1
* New upstream.
* watch: scan upstream stable releases instead of dev snapshots.
* control: use default gobjc instead of explicit 4.6.
* rules: use dpkg-dev build flags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*      JAPrint
 
2
        
 
3
        Printf-like functions fore CoreFoundation objects, with support for %@
 
4
        formatting.
 
5
*/
 
6
 
 
7
#include <CoreFoundation/CoreFoundation.h>
 
8
#include <stdio.h>
 
9
#include <stdarg.h>
 
10
 
 
11
 
 
12
#define JAPRINT_ENCODING        kCFStringEncodingUTF8
 
13
 
 
14
 
 
15
void JAPrint(CFStringRef format, ...);
 
16
void JAPrintWithArguments(CFStringRef format, va_list args);
 
17
 
 
18
#define JAPrintFlush()  fflush(stdout)
 
19
 
 
20
void JAFPrint(FILE *file, CFStringRef format, ...);
 
21
void JAFPrintWithArguments(FILE *file, CFStringRef format, va_list args);
 
22
 
 
23
 
 
24
#define JAPrintC(format, ...)           JAPrint(CFSTR(format), ## __VA_ARGS__)
 
25
#define JAPrintErr(format, ...)         JAFPrint(stderr, format, ## __VA_ARGS__)
 
26
#define JAPrintErrC(format, ...)        JAFPrint(stderr, CFSTR(format), ## __VA_ARGS__)