source: doc/proposals/modules-gen-hdr/akwd-val-trans/a.src.c

Last change on this file was b28ce93, checked in by Michael Brooks <mlbrooks@…>, 3 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//# @
4struct a_t {
5 struct b_t * b;
6};
7
8//# $f
9void 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.