Fixed translation of GLchar** (should be string[], not string). Added
diagnostic message in case of higher-order pointer parameters that will currently generate incorrect bindings.
This commit is contained in:
parent
a162ee5b1b
commit
06d2de3e7b
1 changed files with 9 additions and 1 deletions
|
@ -306,10 +306,18 @@ namespace Bind.Structures
|
|||
{
|
||||
base.Translate(overrides, category, enums);
|
||||
|
||||
if (Pointer >= 3)
|
||||
{
|
||||
System.Diagnostics.Trace.WriteLine(String.Format(
|
||||
"[Error] Type '{0}' has a high pointer level. Bindings will be incorrect.",
|
||||
CurrentType));
|
||||
}
|
||||
|
||||
// Find out the necessary wrapper types.
|
||||
if (Pointer != 0)/* || CurrentType == "IntPtr")*/
|
||||
{
|
||||
if (CurrentType.ToLower().Contains("string"))
|
||||
if (CurrentType.ToLower().Contains("string") ||
|
||||
CurrentType.ToLower().Contains("char") && Pointer > 1)
|
||||
{
|
||||
// string* -> [In] String[] or [Out] StringBuilder[]
|
||||
QualifiedType =
|
||||
|
|
Loading…
Reference in a new issue