source: doc/proposals/modules-gen-hdr/hello/a.src.c@ 47064914

Last change on this file since 47064914 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: 280 bytes
Line 
1#import static helper
2
3//# @
4struct a {
5 int x;
6};
7
8//# $v
9struct a glb_a = { 10 };
10
11//# $f
12void f_a( struct a p ) {
13 int printf( const char *, ... ); // scaffold
14 printf( "f_a( a{ %d } ), glb_a == { %d }\n", p.x, glb_a.x );
15 help();
16 printf( "f_a end\n" );
17}
Note: See TracBrowser for help on using the repository browser.