2 #ifndef UGDK_SCRIPT_LUA_HEADER_H_
3 #define UGDK_SCRIPT_LUA_HEADER_H_
21 #define DECLARE_LUA_CONSTANT(category,name) \
22 static const Constant name () { return Constant(LUA_##category##name); }
34 template <
typename Callable>
42 DECLARE_LUA_CONSTANT(,GLOBALSINDEX)
65 operator int()
const {
return value_; }
75 #undef DECLARE_LUA_CONSTANT
77 inline void LuaMsg (
const char *format, ...) {
80 va_start(list,format);
81 vprintf(format, list);
bool operator!=(const Constant &st) const
Definition: header.h:64
Constant(Callable c)
Constructs a Lua constant frm the result of a call to c.
Definition: header.h:35
Definition: animation.h:11
Represents a constant value from the Lua library.
Definition: header.h:25
void LuaMsg(const char *format,...)
Definition: header.h:77
int value()
Definition: header.h:38
bool operator==(const Constant &st) const
Definition: header.h:63