new macro LUALIB_API (so the lib can be a separate DLL)
This commit is contained in:
41
lauxlib.h
41
lauxlib.h
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lauxlib.h,v 1.27 2000/10/05 12:14:08 roberto Exp roberto $
|
||||
** $Id: lauxlib.h,v 1.28 2000/10/20 16:39:03 roberto Exp roberto $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -15,26 +15,31 @@
|
||||
#include "lua.h"
|
||||
|
||||
|
||||
#ifndef LUALIB_API
|
||||
#define LUALIB_API extern
|
||||
#endif
|
||||
|
||||
|
||||
struct luaL_reg {
|
||||
const char *name;
|
||||
lua_CFunction func;
|
||||
};
|
||||
|
||||
|
||||
LUA_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n);
|
||||
LUA_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg);
|
||||
LUA_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len);
|
||||
LUA_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def,
|
||||
LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n);
|
||||
LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg);
|
||||
LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len);
|
||||
LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def,
|
||||
size_t *len);
|
||||
LUA_API double luaL_check_number (lua_State *L, int numArg);
|
||||
LUA_API double luaL_opt_number (lua_State *L, int numArg, double def);
|
||||
LUALIB_API double luaL_check_number (lua_State *L, int numArg);
|
||||
LUALIB_API double luaL_opt_number (lua_State *L, int numArg, double def);
|
||||
|
||||
LUA_API void luaL_checkstack (lua_State *L, int space, const char *msg);
|
||||
LUA_API void luaL_checktype (lua_State *L, int narg, int t);
|
||||
LUA_API void luaL_checkany (lua_State *L, int narg);
|
||||
LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg);
|
||||
LUALIB_API void luaL_checktype (lua_State *L, int narg, int t);
|
||||
LUALIB_API void luaL_checkany (lua_State *L, int narg);
|
||||
|
||||
LUA_API void luaL_verror (lua_State *L, const char *fmt, ...);
|
||||
LUA_API int luaL_findstring (const char *name, const char *const list[]);
|
||||
LUALIB_API void luaL_verror (lua_State *L, const char *fmt, ...);
|
||||
LUALIB_API int luaL_findstring (const char *name, const char *const list[]);
|
||||
|
||||
|
||||
|
||||
@@ -80,12 +85,12 @@ typedef struct luaL_Buffer {
|
||||
|
||||
#define luaL_addsize(B,n) ((B)->p += (n))
|
||||
|
||||
LUA_API void luaL_buffinit (lua_State *L, luaL_Buffer *B);
|
||||
LUA_API char *luaL_prepbuffer (luaL_Buffer *B);
|
||||
LUA_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l);
|
||||
LUA_API void luaL_addstring (luaL_Buffer *B, const char *s);
|
||||
LUA_API void luaL_addvalue (luaL_Buffer *B);
|
||||
LUA_API void luaL_pushresult (luaL_Buffer *B);
|
||||
LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B);
|
||||
LUALIB_API char *luaL_prepbuffer (luaL_Buffer *B);
|
||||
LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l);
|
||||
LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s);
|
||||
LUALIB_API void luaL_addvalue (luaL_Buffer *B);
|
||||
LUALIB_API void luaL_pushresult (luaL_Buffer *B);
|
||||
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
Reference in New Issue
Block a user