root / volk / gen / emit_omnilog.py @ a5e2d9e5
History | View | Annotate | Download (404 Bytes)
| 1 | def emit_prolog(): |
|---|---|
| 2 | tempstring = "";
|
| 3 | tempstring = tempstring + '#ifdef __cplusplus\n';
|
| 4 | tempstring = tempstring + 'extern "C" {\n';
|
| 5 | tempstring = tempstring + '#endif\n';
|
| 6 | return tempstring;
|
| 7 | def emit_epilog(): |
| 8 | tempstring = "";
|
| 9 | tempstring = tempstring + '#ifdef __cplusplus\n';
|
| 10 | tempstring = tempstring + '}\n';
|
| 11 | tempstring = tempstring + '#endif\n';
|
| 12 | return tempstring;
|
| 13 |