Mercurial > hg > Game > S_Dandy
view src/debug.cc @ 4:bb2fbe78c7cd
moving title scene.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 07 Dec 2010 18:37:43 +0900 |
parents | deb7e09824a4 |
children |
line wrap: on
line source
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include "count.h" static FILE *dbg_fp; void dbg_init(char *fname) { dbg_fp = fopen(fname, "w"); } int dbg_printf(char *format, ...) { va_list ap; va_start(ap, format); vfprintf(dbg_fp, format, ap); va_end(ap); // fflush(dbg_fp); return (0); }