|
Last change
on this file since fae93a40 was b28ce93, checked in by Michael Brooks <mlbrooks@…>, 4 months ago |
|
Add POC illustrating generating headers from compile units
|
-
Property mode
set to
100644
|
|
File size:
250 bytes
|
| Line | |
|---|
| 1 | #import auto & b
|
|---|
| 2 |
|
|---|
| 3 | //# @
|
|---|
| 4 | struct a_t {
|
|---|
| 5 | struct b_t * b;
|
|---|
| 6 | };
|
|---|
| 7 |
|
|---|
| 8 | //# $f
|
|---|
| 9 | void a( struct a_t * p, int depth ) {
|
|---|
| 10 | int printf( const char *, ... ); // scaffold
|
|---|
| 11 | if (depth < 0) return;
|
|---|
| 12 | printf( "a %p %d\n", p, depth );
|
|---|
| 13 | b( p->b, depth-1 );
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.