00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __loaded__sao_printer_cpp__
00021 #define __loaded__sao_printer_cpp__
00022 using namespace std;
00023 #line 1 "sao-printer.c++"
00024 #include <cstdio>
00025 #include "sao-printer.h"
00026
00027
00028 void print(outputbuf& where, const char* script, ...)
00029 {
00030 char toexecute[1024];
00031 va_list ap;
00032 va_start(ap,script);
00033 vsprintf(toexecute,script,ap);
00034 va_end(ap);
00035 where.push_back(toexecute);
00036 };
00037
00038 void print(outputbuf& where, string script, ...)
00039 {
00040 char toexecute[1024];
00041 va_list ap;
00042 va_start(ap,script);
00043 vsprintf(toexecute,script.c_str(),ap);
00044 va_end(ap);
00045 where.push_back(toexecute);
00046 }
00047 #endif // __loaded__sao_printer_cpp__