зеркало из https://github.com/xamarin/urho.git
Fix bug of generating extra class instead of struct(Copy paste problem)
This commit is contained in:
Родитель
5b7970fe69
Коммит
8fcfc02ef8
|
@ -1,4 +1,4 @@
|
|||
//
|
||||
//
|
||||
// CURRENTLY
|
||||
// Generate base classes without a call to base
|
||||
// Generate the standard idioms/patterns for init, dispose
|
||||
|
@ -247,10 +247,10 @@ namespace SharpieBinder
|
|||
// but for now, this will do
|
||||
var classesNotStructs = new[] {"String", "Skeleton", "XMLElement", "GPUObject", "Frustum", "Polyhedron"};
|
||||
if (classesNotStructs.Contains(decl.Name))
|
||||
if (!extraClasses.Contains(decl.Name))
|
||||
return false;
|
||||
|
||||
if (decl.TagKind == TagDeclKind.Struct || !(decl.IsDerivedFrom(ScanBaseTypes.UrhoRefCounted) || decl == ScanBaseTypes.UrhoRefCounted))
|
||||
if (!extraClasses.Contains(decl.Name))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче