]> git.buserror.net Git - polintos/scott/priv.git/blob - idlcomp/languages/c++/marshall.cc
2391b37980b9e1476e15b6a94e008d918fff415c
[polintos/scott/priv.git] / idlcomp / languages / c++ / marshall.cc
1 // C++ Marshalling
2 //
3 // This software is copyright (c) 2007 Scott Wood <scott@buserror.net>.
4 // 
5 // This software is provided 'as-is', without any express or implied warranty.
6 // In no event will the authors or contributors be held liable for any damages
7 // arising from the use of this software.
8 // 
9 // Permission is hereby granted to everyone, free of charge, to use, copy,
10 // modify, prepare derivative works of, publish, distribute, perform,
11 // sublicense, and/or sell copies of the Software, provided that the above
12 // copyright notice and disclaimer of warranty be included in all copies or
13 // substantial portions of this software.
14
15 #include "c++.h"
16
17 void CPPFile::output_ifaceinfo(Interface *iface)
18 {
19         extra_newline();
20
21         file << indent << "static const __attribute__((unused))\n"
22              << indent << "::System::RunTime::IFaceInfo _info = {\n"
23              << indent << "\t&_guid,\n"
24              << indent << "};\n";
25         
26         do_extra_newline = true;
27 }