aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/script/luabindhelper.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-06 13:13:25 +0000
committerEugene Sandulenko2010-10-12 22:35:55 +0000
commit47904bc7b2992189bb554833f00a79ff0fea9fb8 (patch)
tree1cec51758c6741b970bd064fafee77607b9f884f /engines/sword25/script/luabindhelper.h
parentca17def625154e5f758b797e4fc48c76b0566320 (diff)
downloadscummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.gz
scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.bz2
scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.zip
SWORD25: Mass-astyle.
svn-id: r53222
Diffstat (limited to 'engines/sword25/script/luabindhelper.h')
-rw-r--r--engines/sword25/script/luabindhelper.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/engines/sword25/script/luabindhelper.h b/engines/sword25/script/luabindhelper.h
index 6bb1a254b9..9c864c6085 100644
--- a/engines/sword25/script/luabindhelper.h
+++ b/engines/sword25/script/luabindhelper.h
@@ -23,7 +23,7 @@
*
*/
-/*
+/*
* This code is based on Broken Sword 2.5 engine
*
* Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdoerfer
@@ -41,8 +41,8 @@ namespace Lua {
extern "C"
{
- #include "sword25/util/lua/lua.h"
- #include "sword25/util/lua/lauxlib.h"
+#include "sword25/util/lua/lua.h"
+#include "sword25/util/lua/lauxlib.h"
}
}
@@ -55,65 +55,65 @@ namespace Sword25 {
#define lua_tobooleancpp(L, i) (lua_toboolean(L, i) == 0 ? false : true)
struct lua_constant_reg {
- const char * Name;
- lua_Number Value;
+ const char *Name;
+ lua_Number Value;
};
class BS_LuaBindhelper {
public:
/**
* Registers a set of functions into a Lua library.
- * @param L A pointer to the Lua VM
- * @param LibName The name of the library.
+ * @param L A pointer to the Lua VM
+ * @param LibName The name of the library.
* If this is an empty string, the functions will be added to the global namespace.
- * @param Functions An array of function pointers along with their names.
+ * @param Functions An array of function pointers along with their names.
* The array must be terminated with the enry (0, 0)
- * @return Returns true if successful, otherwise false.
+ * @return Returns true if successful, otherwise false.
*/
static bool AddFunctionsToLib(lua_State *L, const Common::String &LibName, const luaL_reg *Functions);
/**
* Adds a set of constants to the Lua library
- * @param L A pointer to the Lua VM
- * @param LibName The name of the library.
+ * @param L A pointer to the Lua VM
+ * @param LibName The name of the library.
* If this is an empty string, the functions will be added to the global namespace.
- * @param Constants An array of the constant values along with their names.
+ * @param Constants An array of the constant values along with their names.
* The array must be terminated with the enry (0, 0)
- * @return Returns true if successful, otherwise false.
+ * @return Returns true if successful, otherwise false.
*/
- static bool AddConstantsToLib(lua_State * L, const Common::String & LibName, const lua_constant_reg * Constants);
+ static bool AddConstantsToLib(lua_State *L, const Common::String &LibName, const lua_constant_reg *Constants);
/**
* Adds a set of methods to a Lua class
- * @param L A pointer to the Lua VM
- * @param ClassName The name of the class
+ * @param L A pointer to the Lua VM
+ * @param ClassName The name of the class
* When the class name specified does not exist, it is created.
- * @param Methods An array of function pointers along with their method names.
+ * @param Methods An array of function pointers along with their method names.
* The array must be terminated with the enry (0, 0)
- * @return Returns true if successful, otherwise false.
+ * @return Returns true if successful, otherwise false.
*/
static bool AddMethodsToClass(lua_State *L, const Common::String &ClassName, const luaL_reg *Methods);
/**
* Sets the garbage collector callback method when items of a particular class are deleted
- * @param L A pointer to the Lua VM
- * @param ClassName The name of the class
+ * @param L A pointer to the Lua VM
+ * @param ClassName The name of the class
* When the class name specified does not exist, it is created.
- * @param GCHandler A function pointer
- * @return Returns true if successful, otherwise false.
+ * @param GCHandler A function pointer
+ * @return Returns true if successful, otherwise false.
*/
static bool SetClassGCHandler(lua_State *L, const Common::String &ClassName, lua_CFunction GCHandler);
/**
* Returns a string containing a stack dump of the Lua stack
- * @param L A pointer to the Lua VM
+ * @param L A pointer to the Lua VM
*/
static Common::String StackDump(lua_State *L);
/**
* Returns a string that describes the contents of a table
- * @param L A pointer to the Lua VM
- * @remark The table must be on the Lua stack to be read out.
+ * @param L A pointer to the Lua VM
+ * @remark The table must be on the Lua stack to be read out.
*/
static Common::String TableDump(lua_State *L);