diff --git a/common/luaobject.h b/common/luaobject.h index e338fdad9..9e3b376da 100644 --- a/common/luaobject.h +++ b/common/luaobject.h @@ -159,6 +159,13 @@ int luaA_object_emit_signal_simple(lua_State *); return p; \ } +#define OBJECT_EXPORT_PROPERTY(pfx, type, field) \ + fieldtypeof(type, field) \ + pfx##_get_##field(type *object) \ + { \ + return object->field; \ + } + #define LUA_OBJECT_EXPORT_PROPERTY(pfx, type, field, pusher) \ static int \ luaA_##pfx##_get_##field(lua_State *L, type *object) \