|
|
|
@ -25,7 +25,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
TypeMap typeMap; |
|
|
|
TypeMap typeMap; |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.MarshalToManaged(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToManaged(Context); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -210,7 +210,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.Type = typedef; |
|
|
|
typeMap.Type = typedef; |
|
|
|
typeMap.MarshalToManaged(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToManaged(Context); |
|
|
|
return typeMap.IsValueType; |
|
|
|
return typeMap.IsValueType; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -232,7 +232,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(template, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(template, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.Type = template; |
|
|
|
typeMap.Type = template; |
|
|
|
typeMap.MarshalToManaged(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToManaged(Context); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -385,7 +385,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
TypeMap typeMap; |
|
|
|
TypeMap typeMap; |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.MarshalToNative(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToNative(Context); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -583,7 +583,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(decl.Type, out typeMap) && |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(decl.Type, out typeMap) && |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.MarshalToNative(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToNative(Context); |
|
|
|
return typeMap.IsValueType; |
|
|
|
return typeMap.IsValueType; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -625,7 +625,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(template, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(template, out typeMap) && typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.Type = template; |
|
|
|
typeMap.Type = template; |
|
|
|
typeMap.MarshalToNative(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToNative(Context); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -672,7 +672,7 @@ namespace CppSharp.Generators.Cpp |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && |
|
|
|
if (Context.Context.TypeMaps.FindTypeMap(type, out typeMap) && |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
typeMap.DoesMarshalling) |
|
|
|
{ |
|
|
|
{ |
|
|
|
typeMap.MarshalToNative(GeneratorKind.QuickJS, Context); |
|
|
|
typeMap.MarshalToNative(Context); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|