Last change
on this file since 16a843b 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
|
Rev | Line | |
---|
[b28ce93] | 1 | #import static helper
|
---|
| 2 |
|
---|
| 3 | //# @
|
---|
| 4 | struct a {
|
---|
| 5 | int x;
|
---|
| 6 | };
|
---|
| 7 |
|
---|
| 8 | //# $v
|
---|
| 9 | struct a glb_a = { 10 };
|
---|
| 10 |
|
---|
| 11 | //# $f
|
---|
| 12 | void 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.