ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lua.h File Reference

#include "common/str.h"
#include "common/list.h"
#include "engines/grim/color.h"
Include dependency graph for lua.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Grim::LuaObjects
 A list of arguments to be passed to a Lua function. More...
struct  Grim::LuaObjects::Obj
 The struct wrapping the value and the type of the objects. More...
class  Grim::LuaBase

Namespaces

namespace  Grim

Defines

#define DECLARE_LUA_OPCODE(func)
 Declare a Lua opcode in the current class.
#define LUA_OPCODE(class, func)   class::static_##func
 Retrieve the opcode "func" of the class "class".

Define Documentation

#define DECLARE_LUA_OPCODE (   func  ) 
Value:
public:\
    inline static void static_##func() {\
        static_cast<LuaClass *>(LuaBase::instance())->func();\
    }\
    protected:\
    virtual void func()

Declare a Lua opcode in the current class.

Definition at line 49 of file lua.h.

#define LUA_OPCODE (   class,
  func 
)    class::static_##func

Retrieve the opcode "func" of the class "class".

Definition at line 59 of file lua.h.



Generated on Sat Nov 9 2019 05:01:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge