mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 17:43:33 +08:00
messagelayer prototype for nuttx
This commit is contained in:
@@ -165,12 +165,13 @@ def get_field_init(field):
|
||||
|
||||
return '\n\t%s(%s),'%(field.name, init_value)
|
||||
}
|
||||
@#ifdef __cplusplus
|
||||
#ifdef __cplusplus
|
||||
@#class @(spec.short_name)_s {
|
||||
struct __EXPORT @(spec.short_name)_s {
|
||||
@#public:
|
||||
@#else
|
||||
#else
|
||||
struct @(spec.short_name)_s {
|
||||
@#endif
|
||||
#endif
|
||||
@{
|
||||
# loop over all fields and print the type and name
|
||||
for field in spec.parsed_fields():
|
||||
|
||||
Reference in New Issue
Block a user