mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-18 10:51:07 +02:00
luainstance: formatting code using astyle
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4775115a23
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-19 (Fri, 19 Nov 2021)
Origin message was:
------------------
- luainstance: formatting code using astyle
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -30,53 +30,54 @@ extern "C" {
|
||||
|
||||
#include "luainstance_helpers.h"
|
||||
|
||||
void LuaInstRegisterFunctions(lua_State *L, bool fromThreads=false);
|
||||
void LuaInstRegisterFunctions(lua_State *L, bool fromThreads = false);
|
||||
|
||||
/* inspired by Steve Kemp http://www.steve.org.uk/ */
|
||||
class CLuaInstance
|
||||
{
|
||||
static const char className[];
|
||||
static CLuaData *CheckData(lua_State *L, int narg);
|
||||
public:
|
||||
CLuaInstance();
|
||||
~CLuaInstance();
|
||||
void runScript(const char *fileName, std::vector<std::string> *argv = NULL, std::string *result_code = NULL, std::string *result_string = NULL, std::string *error_string = NULL);
|
||||
void abortScript();
|
||||
bool DisableAbort;
|
||||
enum {
|
||||
DYNFONT_NO_ERROR = 0,
|
||||
DYNFONT_MAXIMUM_FONTS = 1,
|
||||
DYNFONT_TOO_WIDE = 2,
|
||||
DYNFONT_TOO_HIGH = 3
|
||||
};
|
||||
static const char className[];
|
||||
static CLuaData *CheckData(lua_State *L, int narg);
|
||||
public:
|
||||
CLuaInstance();
|
||||
~CLuaInstance();
|
||||
void runScript(const char *fileName, std::vector<std::string> *argv = NULL, std::string *result_code = NULL, std::string *result_string = NULL, std::string *error_string = NULL);
|
||||
void abortScript();
|
||||
bool DisableAbort;
|
||||
enum
|
||||
{
|
||||
DYNFONT_NO_ERROR = 0,
|
||||
DYNFONT_MAXIMUM_FONTS = 1,
|
||||
DYNFONT_TOO_WIDE = 2,
|
||||
DYNFONT_TOO_HIGH = 3
|
||||
};
|
||||
|
||||
// Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);
|
||||
// Type of all parameters: const char*
|
||||
// The last parameter to NULL is imperative.
|
||||
void runScript(const char *fileName, const char *arg0, ...);
|
||||
// Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);
|
||||
// Type of all parameters: const char*
|
||||
// The last parameter to NULL is imperative.
|
||||
void runScript(const char *fileName, const char *arg0, ...);
|
||||
|
||||
static int NewWindow(lua_State *L);
|
||||
static int GCWindow(lua_State *L);
|
||||
static int GetInput(lua_State *L);
|
||||
static int Blit(lua_State *L);
|
||||
static int GetLanguage(lua_State *L);
|
||||
static int PaintBox(lua_State *L);
|
||||
static int paintHLineRel(lua_State *L);
|
||||
static int paintVLineRel(lua_State *L);
|
||||
static int RenderString(lua_State *L);
|
||||
static int getRenderWidth(lua_State *L);
|
||||
static int FontHeight(lua_State *L);
|
||||
static int getDynFont(lua_State *L);
|
||||
static int PaintIcon(lua_State *L);
|
||||
static int DisplayImage(lua_State *L);
|
||||
static int GetSize(lua_State *L);
|
||||
static int saveScreen(lua_State *L);
|
||||
static int restoreScreen(lua_State *L);
|
||||
static int deleteSavedScreen(lua_State *L);
|
||||
static int scale2Res(lua_State *L);
|
||||
static int NewWindow(lua_State *L);
|
||||
static int GCWindow(lua_State *L);
|
||||
static int GetInput(lua_State *L);
|
||||
static int Blit(lua_State *L);
|
||||
static int GetLanguage(lua_State *L);
|
||||
static int PaintBox(lua_State *L);
|
||||
static int paintHLineRel(lua_State *L);
|
||||
static int paintVLineRel(lua_State *L);
|
||||
static int RenderString(lua_State *L);
|
||||
static int getRenderWidth(lua_State *L);
|
||||
static int FontHeight(lua_State *L);
|
||||
static int getDynFont(lua_State *L);
|
||||
static int PaintIcon(lua_State *L);
|
||||
static int DisplayImage(lua_State *L);
|
||||
static int GetSize(lua_State *L);
|
||||
static int saveScreen(lua_State *L);
|
||||
static int restoreScreen(lua_State *L);
|
||||
static int deleteSavedScreen(lua_State *L);
|
||||
static int scale2Res(lua_State *L);
|
||||
|
||||
private:
|
||||
lua_State* lua;
|
||||
private:
|
||||
lua_State *lua;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user