projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781cdd5
)
Fix bug in Rewrite that didn't detect missing CountAttributes
author
Fraser Waters
<frassle@gmail.com>
Wed, 4 Oct 2017 10:35:26 +0000
(11:35 +0100)
committer
Fraser Waters
<frassle@gmail.com>
Thu, 2 Nov 2017 09:28:34 +0000
(09:28 +0000)
src/Generator.Rewrite/Program.cs
patch
|
blob
|
history
diff --git
a/src/Generator.Rewrite/Program.cs
b/src/Generator.Rewrite/Program.cs
index
f3a809b
..
4004002
100644
(file)
--- a/
src/Generator.Rewrite/Program.cs
+++ b/
src/Generator.Rewrite/Program.cs
@@
-863,9
+863,10
@@
namespace OpenTK.Rewrite
var attribute = parameter.CustomAttributes
.FirstOrDefault(a => a.AttributeType.Name == "CountAttribute");
-
var count = new CountAttribute()
;
+
CountAttribute count = null
;
if (attribute != null)
{
+ count = new CountAttribute();
count.Count = (int)(GetAttributeField(attribute, "Count") ?? 0);
count.Parameter = (string)(GetAttributeField(attribute, "Parameter"));
count.Computed = (string)(GetAttributeField(attribute, "Computed"));