diff options
| author | Omar Rizwan <omar@omar.website> | 2023-04-15 04:24:53 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-04-15 04:24:53 +0000 |
| commit | f55f71ab5bd1dd14a8a10fc6c014150e4a0bc5bc (patch) | |
| tree | 7988df0333eb3e2a004945bab8d1dd0c0a155a6f /lib | |
| parent | Vendor nanopb (diff) | |
| download | folk-f55f71ab5bd1dd14a8a10fc6c014150e4a0bc5bc.tar.gz folk-f55f71ab5bd1dd14a8a10fc6c014150e4a0bc5bc.zip | |
c: Support quotation mark includes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/c.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -151,7 +151,11 @@ namespace eval c { ::proc include {h} { variable code - lappend code "#include $h" + if {[string index $h 0] eq "<"} { + lappend code "#include $h" + } else { + lappend code "#include \"$h\"" + } } ::proc linedirective {} { set frame [info frame -2] |
