From 7e24be95c9891d04447be8051652c172dc3641c2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 12 Apr 2017 16:27:46 +1000 Subject: [PATCH] AP_Param: added macro for var table extension in object --- libraries/AP_Param/AP_Param.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index da78771ba0..78f063d4b1 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -93,6 +93,9 @@ // an object #define AP_SUBGROUPINFO(element, name, idx, thisclazz, elclazz) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info }, AP_PARAM_FLAG_NESTED_OFFSET } +// declare a second parameter table for the same object +#define AP_SUBGROUPEXTENSION(name, idx, clazz, vinfo) { AP_PARAM_GROUP, idx, name, 0, { group_info : clazz::vinfo }, AP_PARAM_FLAG_NESTED_OFFSET } + // declare a pointer subgroup entry in a group var_info #define AP_SUBGROUPPTR(element, name, idx, thisclazz, elclazz) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info }, AP_PARAM_FLAG_POINTER }