diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-04 19:24:51 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-04 19:24:51 -0300 |
| commit | 42fa305649199712aad1c96beadb944b01277e3f (patch) | |
| tree | d20afcf78aebc8b7fad91ce4e3b9061c2a29b000 /mathlib.c | |
| parent | 9319735744404831f7153653930d56826a4d2f6a (diff) | |
| download | lua-42fa305649199712aad1c96beadb944b01277e3f.tar.gz lua-42fa305649199712aad1c96beadb944b01277e3f.tar.bz2 lua-42fa305649199712aad1c96beadb944b01277e3f.zip | |
better error messages;
better names for some API functions.
Diffstat (limited to 'mathlib.c')
| -rw-r--r-- | mathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Mathematics library to LUA | 3 | ** Mathematics library to LUA |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.20 1997/03/18 15:30:50 roberto Exp roberto $"; | 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.21 1997/03/21 18:37:28 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 9 | #include <math.h> | 9 | #include <math.h> |
| @@ -210,6 +210,6 @@ static struct luaL_reg mathlib[] = { | |||
| 210 | void mathlib_open (void) | 210 | void mathlib_open (void) |
| 211 | { | 211 | { |
| 212 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); | 212 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); |
| 213 | lua_setintmethod(0, "pow", math_pow); | 213 | lua_settagmethod(0, "pow", math_pow); |
| 214 | } | 214 | } |
| 215 | 215 | ||
