aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-24 10:05:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-24 10:05:44 -0200
commita6f465f55802989c1656d1a3b030c315c8ef2690 (patch)
treed82e6d23612d42957341f3e8bd53937c267a1d1e /lmathlib.c
parent9a41506b8f26e387493880e0affc2e23d604a97e (diff)
downloadlua-a6f465f55802989c1656d1a3b030c315c8ef2690.tar.gz
lua-a6f465f55802989c1656d1a3b030c315c8ef2690.tar.bz2
lua-a6f465f55802989c1656d1a3b030c315c8ef2690.zip
new mark LUAMOD_API for all luaopen_* functions
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index eca93ecc..391a31e7 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.72 2009/02/18 13:17:10 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.73 2009/03/17 17:55:39 roberto Exp roberto $
3** Standard mathematical library 3** Standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -262,7 +262,7 @@ static const luaL_Reg mathlib[] = {
262/* 262/*
263** Open math library 263** Open math library
264*/ 264*/
265LUALIB_API int luaopen_math (lua_State *L) { 265LUAMOD_API int luaopen_math (lua_State *L) {
266 luaL_register(L, LUA_MATHLIBNAME, mathlib); 266 luaL_register(L, LUA_MATHLIBNAME, mathlib);
267 lua_pushnumber(L, PI); 267 lua_pushnumber(L, PI);
268 lua_setfield(L, -2, "pi"); 268 lua_setfield(L, -2, "pi");