Realign for some comments.
This commit is contained in:
parent
8985c34809
commit
9a6f82ab31
12 changed files with 35 additions and 35 deletions
|
|
@ -1109,7 +1109,7 @@ Now, in Lua
|
|||
> e = c + d
|
||||
> print(e) -- print uses __str__ to get the string form to print
|
||||
Complex(10, 12)
|
||||
> print(e==Complex(10, 12)) -- testing the == operator
|
||||
> print(e==Complex(10, 12)) -- testing the == operator
|
||||
true
|
||||
> print(e!=Complex(12, 12)) -- the != uses the == operator
|
||||
true
|
||||
|
|
@ -1121,7 +1121,7 @@ Extend works with both C and C++ code, on classes and structs. It does not modif
|
|||
<H3><a name="Lua_nn20">28.3.13 Using %newobject to release memory</a></H3>
|
||||
|
||||
|
||||
<p> If you have a function that allocates memory like this, </p>
|
||||
<p> If you have a function that allocates memory like this,</p>
|
||||
<div class="code">
|
||||
<pre>char *foo() {
|
||||
char *result = (char *) malloc(...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue