V
vashwath
Hi all,
As per our coding rule, a line should not have more than 80 characters.
When accessing a structure elements which are deeply nested, we are not
able follow this rule. To acheive this Can we use macro?
For example,
struct1.str1.strct3=struct2.str2.st1.s1 + struct3.str3.st3.s3;
#define STRUCT2 struct2.str2.st1.s1
#define STRUCT3 struct3.str3.st3.s3
and then use
struct1.str1.strct3 = STRUCT2 + STRUCT3;
Is this a good Idea(if not please let me know what are the problems it
may cause)?Or Is there a better Idea than this?
As per our coding rule, a line should not have more than 80 characters.
When accessing a structure elements which are deeply nested, we are not
able follow this rule. To acheive this Can we use macro?
For example,
struct1.str1.strct3=struct2.str2.st1.s1 + struct3.str3.st3.s3;
#define STRUCT2 struct2.str2.st1.s1
#define STRUCT3 struct3.str3.st3.s3
and then use
struct1.str1.strct3 = STRUCT2 + STRUCT3;
Is this a good Idea(if not please let me know what are the problems it
may cause)?Or Is there a better Idea than this?