Skip to content

Commit

Permalink
Added tcc._NAME, tcc._VERSION and tcc.TCC_VERSION fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nucular committed Dec 31, 2016
1 parent 6a91bde commit 43cd941
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/examples/add_symbol.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h2>add_symbol.lua</h2>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-12-31 16:07:37 </i>
<i style="float:right;">Last updated 2016-12-31 16:17:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/get_symbol.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h2>get_symbol.lua</h2>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-12-31 16:07:37 </i>
<i style="float:right;">Last updated 2016-12-31 16:17:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/libtcc_test.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h2>libtcc_test.lua</h2>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-12-31 16:07:37 </i>
<i style="float:right;">Last updated 2016-12-31 16:17:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/run.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2>run.lua</h2>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-12-31 16:07:37 </i>
<i style="float:right;">Last updated 2016-12-31 16:17:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
20 changes: 19 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ <h2><a href="#Tables">Tables</a></h2>
</table>
<h2><a href="#Fields">Fields</a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#TCC_VERSION">TCC_VERSION</a></td>
<td class="summary">Compatible version of TCC (currently <code>0.9.26</code>)</td>
</tr>
<tr>
<td class="name" nowrap><a href="#home_path">home_path</a></td>
<td class="summary">Path to the TCC home, containing the <code>lib</code> and <code>include</code> directories.</td>
Expand Down Expand Up @@ -370,6 +374,20 @@ <h3>Fields:</h3>
<h2 class="section-header "><a name="Fields"></a>Fields</h2>

<dl class="function">
<dt>
<a name = "TCC_VERSION"></a>
<strong>TCC_VERSION</strong>
</dt>
<dd>
Compatible version of TCC (currently <code>0.9.26</code>)







</dd>
<dt>
<a name = "home_path"></a>
<strong>home_path</strong>
Expand Down Expand Up @@ -951,7 +969,7 @@ <h3>See also:</h3>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-12-31 16:07:37 </i>
<i style="float:right;">Last updated 2016-12-31 16:17:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
6 changes: 6 additions & 0 deletions tcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
local tcc = {}
local ffi = require("ffi")

tcc._NAME = "tcc"
tcc._VERSION = "scm"

--- Compatible version of TCC (currently `0.9.26`)
tcc.TCC_VERSION = "0.9.26"

--- Output types used by @{State:set_output_type}
tcc.OUTPUT = {
MEMORY = 0, -- output will be run in memory (default)
Expand Down

0 comments on commit 43cd941

Please sign in to comment.