Fixed the class containing context functions to be unsafe.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed the "protected" modifier of setters when in a structure. Changed a generated local variable to a non-conflicting name.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Replaced an expression with a variable so that the & operator works.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Used the qualified identifier when allocating return values, to handle nested types.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Corrected the generation of the native constructor when in a structure.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed the hard-coded "ret" variable.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a compilation test for a free function with a class parameter named "ret".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a compilation test for the class member of a nested type - that is, when &IntPtr code is generated.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Fixed the "ret" conflict in the CLI back-end as well.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Fixed the generation of unions by considering all unions non-reference types.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Added a union to the test header to check for compilable generated union wrappers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Fixed the generation of virtual tables to use the new format of internal generated identifiers.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed a hard-coded "__".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Moved GeneratedIdentifier to the base Generator so that the former is available to all back-ends.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Removed the hard-coded "__" from the CLI back-end.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #46 from ddobrev/master

Compilation fixes