Houge
Member
|
Editor minor bugs
Hello!
1. This code works:
Code:
struct v
{
Str text;
}
struct v2 : v
{
Str text2;
}
typedef v2 v3;
This one does not:
Code:
struct v
{
Str text;
}
STRUCT(v2, v)
//{
Str text2;
}
typedef v2 v3;
Errors:
Quote:1>c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@@forward.h(9): error C2146: syntax error : missing ';' before identifier 'v3'
1>c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@@forward.h(9): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@v2.h(2): error C2371: 'v2' : redefinition; different basic types
1> c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@@forward.h(9) : see declaration of 'v2'
1>c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@v2.h(9): error C2378: 'v3' : redefinition; symbol cannot be overloaded with a typedef
1> c:\esenthelenginesdk\projects\_build_\1 - basic app\source\@@forward.h(9) : see declaration of 'v3'
2. When using namespaces with STRUCT, namespace region is not highlighted well (because of //{ in STRUCT):
(This post was last modified: 10-13-2014 04:54 PM by Houge.)
|
|
10-13-2014 04:53 PM |
|
Esenthel
Administrator
|
RE: Editor minor bugs
Thank you for reporting the issue.
I will look into this in the future, as in Code Editor you don't need to use STRUCT macro, that's required only for regular C++.
Code Editor is smart enough to work with 'super' on all platforms.
|
|
10-14-2014 02:18 AM |
|
Houge
Member
|
RE: Editor minor bugs
(10-14-2014 02:18 AM)Esenthel Wrote: in Code Editor you don't need to use STRUCT macro, that's required only for regular C++.
Code Editor is smart enough to work with 'super' on all platforms.
Didn't know it, thank you for clarification!
|
|
10-14-2014 07:28 AM |
|