diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
commit | 64eecc0b8219cc3bcaa2b717826a4376c60d9305 (patch) | |
tree | a1633501cdf21016a00bd555c475daea58ec24f5 /lstate.c | |
parent | 8b88ab07f7cfc216407a88d75ad8f0546224c8d7 (diff) | |
download | lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.gz lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.bz2 lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.zip |
new macro LUA_API
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.43 2000/10/05 13:00:17 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.44 2000/10/06 19:28:47 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -60,7 +60,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | lua_State *lua_open (int stacksize) { | 63 | LUA_API lua_State *lua_open (int stacksize) { |
64 | lua_State *L = luaM_new(NULL, lua_State); | 64 | lua_State *L = luaM_new(NULL, lua_State); |
65 | if (L == NULL) return NULL; /* memory allocation error */ | 65 | if (L == NULL) return NULL; /* memory allocation error */ |
66 | L->stack = NULL; | 66 | L->stack = NULL; |
@@ -94,7 +94,7 @@ lua_State *lua_open (int stacksize) { | |||
94 | } | 94 | } |
95 | 95 | ||
96 | 96 | ||
97 | void lua_close (lua_State *L) { | 97 | LUA_API void lua_close (lua_State *L) { |
98 | luaC_collect(L, 1); /* collect all elements */ | 98 | luaC_collect(L, 1); /* collect all elements */ |
99 | LUA_ASSERT(L->rootproto == NULL, "list should be empty"); | 99 | LUA_ASSERT(L->rootproto == NULL, "list should be empty"); |
100 | LUA_ASSERT(L->rootcl == NULL, "list should be empty"); | 100 | LUA_ASSERT(L->rootcl == NULL, "list should be empty"); |