public void EmitNativeFunction(CodeBuilder b)
 {
     b.AppendComment(this.ToString());
     if (Platform != CefPlatform.Independent)
     {
         b.AppendLine("#ifdef CFX_" + Platform.ToString().ToUpperInvariant());
     }
     b.BeginBlock(Signature.NativeFunctionHeader(CfxName));
     Signature.EmitNativeCall(b, Name);
     b.EndBlock();
     if (Platform != CefPlatform.Independent)
     {
         b.AppendLine("#else");
         b.AppendLine("#define {0} 0", CfxName);
         b.AppendLine("#endif");
     }
 }
 public CefPlatformStructType(string name, CommentData comments, CefPlatform platform)
     : base(name + "_" + platform.ToString().ToLowerInvariant(), comments)
 {
     this.Platform = platform;
     baseTypeName  = name;
 }
 public CefPlatformStructType(string name, StructCategory category, CefPlatform platform)
     : base(name + "_" + platform.ToString().ToLowerInvariant(), category)
 {
     this.Platform = platform;
     baseTypeName  = name;
 }