aboutsummaryrefslogtreecommitdiff
path: root/mathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-04 19:24:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-04 19:24:51 -0300
commit42fa305649199712aad1c96beadb944b01277e3f (patch)
treed20afcf78aebc8b7fad91ce4e3b9061c2a29b000 /mathlib.c
parent9319735744404831f7153653930d56826a4d2f6a (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mathlib.c b/mathlib.c
index 16d2a815..7a74fe14 100644
--- a/mathlib.c
+++ b/mathlib.c
@@ -3,7 +3,7 @@
3** Mathematics library to LUA 3** Mathematics library to LUA
4*/ 4*/
5 5
6char *rcs_mathlib="$Id: mathlib.c,v 1.20 1997/03/18 15:30:50 roberto Exp roberto $"; 6char *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[] = {
210void mathlib_open (void) 210void 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