mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 11:50:58 +00:00
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
|
@ -306,10 +306,18 @@ namespace Bind.Structures
|
||||||
{
|
{
|
||||||
base.Translate(overrides, category, enums);
|
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.
|
// Find out the necessary wrapper types.
|
||||||
if (Pointer != 0)/* || CurrentType == "IntPtr")*/
|
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[]
|
// string* -> [In] String[] or [Out] StringBuilder[]
|
||||||
QualifiedType =
|
QualifiedType =
|
||||||
|
|
Loading…
Reference in a new issue