diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-02-12 17:27:10 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-02-12 17:27:10 -0200 |
| commit | 5ef1989c4b05aff8362a7ea6ba62aad76d4a040d (patch) | |
| tree | dde122f635042f7ade35e87fb4fce531d300245f | |
| parent | f380d627f8f018e029c889e809f1c0f9cc6fc2e5 (diff) | |
| download | lua-5ef1989c4b05aff8362a7ea6ba62aad76d4a040d.tar.gz lua-5ef1989c4b05aff8362a7ea6ba62aad76d4a040d.tar.bz2 lua-5ef1989c4b05aff8362a7ea6ba62aad76d4a040d.zip | |
"settag" returns its first argument.
| -rw-r--r-- | lbuiltin.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.23 1998/01/19 19:49:22 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.24 1998/02/12 19:23:32 roberto Exp roberto $ |
| 3 | ** Built-in functions | 3 | ** Built-in functions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -312,6 +312,7 @@ static void settag (void) | |||
| 312 | lua_Object o = luaL_tablearg(1); | 312 | lua_Object o = luaL_tablearg(1); |
| 313 | lua_pushobject(o); | 313 | lua_pushobject(o); |
| 314 | lua_settag(luaL_check_number(2)); | 314 | lua_settag(luaL_check_number(2)); |
| 315 | lua_pushobject(o); /* returns first argument */ | ||
| 315 | } | 316 | } |
| 316 | 317 | ||
| 317 | 318 | ||
