It makes no sense with inline functions.
Signed-off-by: Scott Wood <scott@buserror.net>
void CPPFile::output_downcast_proto(Interface *iface, Interface *super)
{
- file << '\n' << indent << "static __attribute__((weak)) inline "
+ file << '\n' << indent << "static inline "
<< **iface->name << " downcast(";
cpp_output_type(file, super, false, false);
file << "oldptr);\n";
if (super)
file << '\n'
- << indent << "static __attribute__((weak)) " << name << " *downcast(::System::VStruct *base)\n"
+ << indent << "static " << name << " *downcast(::System::VStruct *base)\n"
<< indent << "{\n"
<< indent << "\tif (!base)\n"
<< indent << "\t\treturn NULL;\n\n"