lua

A copy of the Lua development repository
Log | Files | Refs | README

commit f93704728f4854ce113cee05c337fb2db0da15a3
parent c9e3d321828dd095d46e295873bc991f0c9ed3d7
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  8 Apr 1997 12:41:24 -0300

one cannot "create" a userdata.

Diffstat:
Miolib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iolib.c b/iolib.c @@ -295,7 +295,7 @@ static void getbyte (void) } } -static void createuserdata (void) +static void newuserdata (void) { lua_Object t = lua_getparam(1); int tag = luaL_opt_number(2, 0); @@ -335,7 +335,7 @@ static struct luaL_reg iolib[] = { {"exit", io_exit}, {"debug", io_debug}, {"getbyte", getbyte}, -{"createud", createuserdata}, +{"userdata", newuserdata}, {"print_stack", errorfb} };