mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
[Horus] Cosmetics
This commit is contained in:
parent
f7fafc0948
commit
e72a049683
1 changed files with 107 additions and 105 deletions
|
@ -34,8 +34,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef lua_api_h
|
||||
#define lua_api_h
|
||||
#ifndef _LUA_API_H_
|
||||
#define _LUA_API_H_
|
||||
|
||||
#if defined(LUA)
|
||||
|
||||
|
@ -49,6 +49,8 @@ extern "C" {
|
|||
extern lua_State *L;
|
||||
extern bool luaLcdAllowed;
|
||||
|
||||
void luaInit();
|
||||
|
||||
#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_pushtablenil(L, k) (lua_pushstring(L, (k)), lua_pushnil(L), lua_settable(L, -3))
|
||||
|
@ -150,8 +152,8 @@ extern "C" {
|
|||
char desc[50];
|
||||
};
|
||||
bool luaFindFieldByName(const char * name, LuaField & field, unsigned int flags=0);
|
||||
#else // #if defined(LUA)
|
||||
#else // defined(LUA)
|
||||
#define LUA_LOAD_MODEL_SCRIPTS()
|
||||
#endif // #if defined(LUA)
|
||||
#endif // defined(LUA)
|
||||
|
||||
#endif // #ifndef lua_api_h
|
||||
#endif // _LUA_API_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue