summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cbc65ab)
It makes no sense with inline functions.
Signed-off-by: Scott Wood <scott@buserror.net>
void CPPFile::output_downcast_proto(Interface *iface, Interface *super)
{
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";
<< **iface->name << " downcast(";
cpp_output_type(file, super, false, false);
file << "oldptr);\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"
<< indent << "{\n"
<< indent << "\tif (!base)\n"
<< indent << "\t\treturn NULL;\n\n"