[Horus] Cosmetics
This commit is contained in:
@@ -34,8 +34,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lua_api_h
|
#ifndef _LUA_API_H_
|
||||||
#define lua_api_h
|
#define _LUA_API_H_
|
||||||
|
|
||||||
#if defined(LUA)
|
#if defined(LUA)
|
||||||
|
|
||||||
@@ -49,6 +49,8 @@ extern "C" {
|
|||||||
extern lua_State *L;
|
extern lua_State *L;
|
||||||
extern bool luaLcdAllowed;
|
extern bool luaLcdAllowed;
|
||||||
|
|
||||||
|
void luaInit();
|
||||||
|
|
||||||
#define lua_registernumber(L, n, i) (lua_pushnumber(L, (i)), lua_setglobal(L, (n)))
|
#define lua_registernumber(L, n, i) (lua_pushnumber(L, (i)), lua_setglobal(L, (n)))
|
||||||
#define lua_registerint(L, n, i) (lua_pushinteger(L, (i)), lua_setglobal(L, (n)))
|
#define lua_registerint(L, n, i) (lua_pushinteger(L, (i)), lua_setglobal(L, (n)))
|
||||||
#define lua_pushtablenil(L, k) (lua_pushstring(L, (k)), lua_pushnil(L), lua_settable(L, -3))
|
#define lua_pushtablenil(L, k) (lua_pushstring(L, (k)), lua_pushnil(L), lua_settable(L, -3))
|
||||||
@@ -150,8 +152,8 @@ extern "C" {
|
|||||||
char desc[50];
|
char desc[50];
|
||||||
};
|
};
|
||||||
bool luaFindFieldByName(const char * name, LuaField & field, unsigned int flags=0);
|
bool luaFindFieldByName(const char * name, LuaField & field, unsigned int flags=0);
|
||||||
#else // #if defined(LUA)
|
#else // defined(LUA)
|
||||||
#define LUA_LOAD_MODEL_SCRIPTS()
|
#define LUA_LOAD_MODEL_SCRIPTS()
|
||||||
#endif // #if defined(LUA)
|
#endif // defined(LUA)
|
||||||
|
|
||||||
#endif // #ifndef lua_api_h
|
#endif // _LUA_API_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user