This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override bool VisitMethodDecl(Method method) | |
{ | |
var expansions = method.PreprocessedEntities.OfType<MacroExpansion>(); | |
if (expansions.Any(e => e.Text == Prefix + "_HASHCODE" | |
|| e.Text == Prefix + "_EQUALS")) | |
method.ExplicitlyIgnore(); | |
/* I added this */ | |
if (expansions.Any(e => e.Text == Prefix + "_INTERNAL")) //Flag a method as internal to an assembly | |
method.Access = AccessSpecifier.Internal; // Something like --> method.Access=internal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 1e1a59a..9a8b0b5 100644 | |
--- a/examples/SDL/SDL.cs | |
+++ b/examples/SDL/SDL.cs | |
@@ -10,7 +10,7 @@ public void Setup(Driver driver) | |
var options = driver.Options; | |
options.LibraryName = "SDL"; | |
options.Headers.Add("SDL.h"); | |
- options.addIncludeDirs("../../../examples/SDL/SDL-2.0/include"); | |
+ options.addIncludeDirs("../../examples/SDL/SDL-2.0/include"); | |
options.OutputDir = "SDL"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/AST/Class.cs b/src/AST/Class.cs | |
index 45b535f..07e1d53 100644 | |
--- a/src/AST/Class.cs | |
+++ b/src/AST/Class.cs | |
@@ -10,7 +10,8 @@ public enum AccessSpecifier | |
{ | |
Private, | |
Protected, | |
- Public | |
+ Public, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/AST/Class.cs b/src/AST/Class.cs | |
index 45b535f..07e1d53 100644 | |
--- a/src/AST/Class.cs | |
+++ b/src/AST/Class.cs | |
@@ -10,7 +10,8 @@ public enum AccessSpecifier | |
{ | |
Private, | |
Protected, | |
- Public | |
+ Public, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/AST/Class.cs b/src/AST/Class.cs | |
index 45b535f..07e1d53 100644 | |
--- a/src/AST/Class.cs | |
+++ b/src/AST/Class.cs | |
@@ -10,7 +10,8 @@ public enum AccessSpecifier | |
{ | |
Private, | |
Protected, | |
- Public | |
+ Public, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h | |
index 488dd2c..41fdc5e 100644 | |
--- a/tests/Basic/Basic.h | |
+++ b/tests/Basic/Basic.h | |
@@ -6,6 +6,9 @@ | |
#endif | |
#include <string> | |
+static int staticTest; | |
+int normalTest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generat | |
index ef0a242..1baed7a 100644 | |
--- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs | |
+++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs | |
@@ -34,11 +34,27 @@ public static class Helpers | |
"void", "partial", "yield", "where" | |
}; | |
+ private static int numSafeIden = 0; | |
public static string SafeIdentifier(string id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h | |
index 488dd2c..62ec2a8 100644 | |
--- a/tests/Basic/Basic.h | |
+++ b/tests/Basic/Basic.h | |
@@ -710,3 +710,17 @@ public: | |
bool operator ==(const DifferentConstOverloads& other); | |
bool operator ==(int number) const; | |
}; | |
+ | |
+#define SCE_NP_ONLINEID_MAX_LENGTH 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Generator/Generators/CLI/CLIMarshal.cs b/src/Generator/Generato | |
index eb00737..bc6da59 100644 | |
--- a/src/Generator/Generators/CLI/CLIMarshal.cs | |
+++ b/src/Generator/Generators/CLI/CLIMarshal.cs | |
@@ -40,13 +40,16 @@ public override bool VisitTagType(TagType tag, TypeQualifier | |
return decl.Visit(this); | |
} | |
+ private static int _arrayNum = 0; | |
public override bool VisitArrayType(ArrayType array, TypeQualifiers qua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Generator/Generators/CLI/CLIMarshal.cs b/src/Generator/Generato | |
index eb00737..bc6da59 100644 | |
--- a/src/Generator/Generators/CLI/CLIMarshal.cs | |
+++ b/src/Generator/Generators/CLI/CLIMarshal.cs | |
@@ -40,13 +40,16 @@ public override bool VisitTagType(TagType tag, TypeQualifier | |
return decl.Visit(this); | |
} | |
+ private static int _arrayNum = 0; | |
public override bool VisitArrayType(ArrayType array, TypeQualifiers qua |
OlderNewer