diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-26 11:31:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-26 11:31:49 -0300 |
commit | dd3a63c205a97339d8c8aec3cd49941bc10ba45c (patch) | |
tree | 763c1701607ace52692c8566277c6c70c7895acd /lvm.c | |
parent | cb49b088b61b75b905663a58a2c545de1ffea13a (diff) | |
download | lua-dd3a63c205a97339d8c8aec3cd49941bc10ba45c.tar.gz lua-dd3a63c205a97339d8c8aec3cd49941bc10ba45c.tar.bz2 lua-dd3a63c205a97339d8c8aec3cd49941bc10ba45c.zip |
new way to handle `profiles'
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.175 2001/03/07 18:09:25 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.176 2001/03/07 18:16:22 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -10,6 +10,7 @@ | |||
10 | #include <stdlib.h> | 10 | #include <stdlib.h> |
11 | #include <string.h> | 11 | #include <string.h> |
12 | 12 | ||
13 | #define LUA_PRIVATE | ||
13 | #include "lua.h" | 14 | #include "lua.h" |
14 | 15 | ||
15 | #include "lapi.h" | 16 | #include "lapi.h" |
@@ -39,7 +40,7 @@ int luaV_tonumber (TObject *obj) { | |||
39 | } | 40 | } |
40 | 41 | ||
41 | 42 | ||
42 | int luaV_tostring (lua_State *L, TObject *obj) { /* LUA_NUMBER */ | 43 | int luaV_tostring (lua_State *L, TObject *obj) { |
43 | if (ttype(obj) != LUA_TNUMBER) | 44 | if (ttype(obj) != LUA_TNUMBER) |
44 | return 1; | 45 | return 1; |
45 | else { | 46 | else { |