new macro LUA_API

This commit is contained in:
Roberto Ierusalimschy
2000-10-20 14:39:03 -02:00
parent 8b88ab07f7
commit 64eecc0b82
19 changed files with 238 additions and 232 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lmathlib.c,v 1.27 2000/08/28 17:57:04 roberto Exp roberto $
** $Id: lmathlib.c,v 1.28 2000/08/31 20:23:40 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -228,7 +228,7 @@ static const struct luaL_reg mathlib[] = {
/*
** Open math library
*/
void lua_mathlibopen (lua_State *L) {
LUA_API void lua_mathlibopen (lua_State *L) {
luaL_openl(L, mathlib);
lua_pushnumber(L, 0); /* to get its tag */
lua_pushcfunction(L, math_pow);