tdebug.c - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tdebug.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 }