new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and

definitions of non-static variables
This commit is contained in:
Roberto Ierusalimschy
2009-11-19 17:06:52 -02:00
parent b4c1824824
commit 062e809e54
10 changed files with 31 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 2.31 2009/11/05 17:43:54 roberto Exp roberto $
** $Id: lobject.h,v 2.32 2009/11/06 17:09:27 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -370,7 +370,7 @@ typedef struct Table {
#define luaO_nilobject (&luaO_nilobject_)
LUAI_DATA const TValue luaO_nilobject_;
LUAI_DDEC const TValue luaO_nilobject_;
LUAI_FUNC int luaO_int2fb (unsigned int x);
LUAI_FUNC int luaO_fb2int (int x);