diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-01-23 16:39:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-01-23 16:39:45 -0200 |
commit | 3681d025accc24c107da07c36f701596fa20806f (patch) | |
tree | 5449586aaf2aab26bdc05cb17b7e0314c7c1a3ea /table.c | |
parent | 2998049f510fdc73daf35ba3741fedb7faa775cc (diff) | |
download | lua-3681d025accc24c107da07c36f701596fa20806f.tar.gz lua-3681d025accc24c107da07c36f701596fa20806f.tar.bz2 lua-3681d025accc24c107da07c36f701596fa20806f.zip |
new function "assert"
Diffstat (limited to 'table.c')
-rw-r--r-- | table.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.40 1996/01/22 14:15:13 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.41 1996/01/22 17:40:00 roberto Exp roberto $"; |
7 | 7 | ||
8 | /*#include <string.h>*/ | 8 | /*#include <string.h>*/ |
9 | 9 | ||
@@ -68,6 +68,8 @@ static void lua_initsymbol (void) | |||
68 | s_tag(n) = LUA_T_CFUNCTION; s_fvalue(n) = luaI_print; | 68 | s_tag(n) = LUA_T_CFUNCTION; s_fvalue(n) = luaI_print; |
69 | n = luaI_findsymbolbyname("dostring"); | 69 | n = luaI_findsymbolbyname("dostring"); |
70 | s_tag(n) = LUA_T_CFUNCTION; s_fvalue(n) = lua_internaldostring; | 70 | s_tag(n) = LUA_T_CFUNCTION; s_fvalue(n) = lua_internaldostring; |
71 | n = luaI_findsymbolbyname("assert"); | ||
72 | s_tag(n) = LUA_T_CFUNCTION; s_fvalue(n) = luaI_assert; | ||
71 | } | 73 | } |
72 | 74 | ||
73 | 75 | ||