plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

debug.c (206B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <draw.h>
      4 
      5 void
      6 drawsetdebug(int v)
      7 {
      8 	uchar *a;
      9 	a = bufimage(display, 1+1);
     10 	if(a == 0){
     11 		fprint(2, "drawsetdebug: %r\n");
     12 		return;
     13 	}
     14 	a[0] = 'D';
     15 	a[1] = v;
     16 }